server/src/tests/Models/DocumentTest.php
changeset 497 f3474aeec884
parent 445 b1e5ad6b2a29
child 498 265992e5b379
--- a/server/src/tests/Models/DocumentTest.php	Fri Feb 03 16:35:09 2017 +0100
+++ b/server/src/tests/Models/DocumentTest.php	Mon Feb 06 10:03:33 2017 +0100
@@ -360,7 +360,7 @@
                 $foundJaneAusten = true;
             }
         }
-        $this->assertTrue($foundJaneAusten, "Jane austenn not foud");
+        $this->assertTrue($foundJaneAusten, "Jane Austeen not foud");
 
     }
 
@@ -427,12 +427,14 @@
 
         $this->assertTrue(is_array($json), 'Returned json must be an array');
         $this->assertEquals(
-            ["id", "uri", "title", "languages", "modified", "issued", "created", "publishers", "contributors", "subjects", "transcript", "mediaArray", "geoInfo"],
+            ["id", "uri", "title", "languages", "modified", "issued", "created", "publishers", "contributors", "subjects", "types", "transcript", "mediaArray", "geoInfo"],
             array_keys($json)
         );
         $this->assertEquals(sprintf('%1$s/crdo-CFPP2000_35_SOUNDid', config('corpusparole.handle_prefix')), $json['id']);
         $this->assertTrue(is_array($json['transcript']));
         $this->assertTrue(is_array($json['mediaArray']));
+        $this->assertTrue(is_array($json['subjects']));
+        $this->assertTrue(is_array($json['types']));
 
     }