server/src/tests/Models/TranscriptResourceTest.php
changeset 529 5d9eacbd5794
parent 168 17f10b56c079
equal deleted inserted replaced
528:aa4fc985bf64 529:5d9eacbd5794
    73         $json = $transcriptResource->jsonSerialize();
    73         $json = $transcriptResource->jsonSerialize();
    74         $this->assertTrue(is_array($json), "must be an array");
    74         $this->assertTrue(is_array($json), "must be an array");
    75         $this->assertEquals(
    75         $this->assertEquals(
    76             [
    76             [
    77                 'url' => "http://cocoon.huma-num.fr/exist/crdo/cfpp2000/fra/Ozgur_Kilic_H_32_alii_3e-2.xml",
    77                 'url' => "http://cocoon.huma-num.fr/exist/crdo/cfpp2000/fra/Ozgur_Kilic_H_32_alii_3e-2.xml",
    78                 "format" => "application/xml",
    78                 'format' => "application/xml",
    79                 "conforms-to" => "http://purl.org/poi/crdo.vjf.cnrs.fr/crdo-dtd_transcriber"
    79                 'conforms-to' => "http://purl.org/poi/crdo.vjf.cnrs.fr/crdo-dtd_transcriber",
       
    80                 'rights' => "http://creativecommons.org/licenses/by-nc-sa/3.0/"
    80             ],
    81             ],
    81             $json
    82             $json
    82         );
    83         );
    83     }
    84     }
    84 
    85