public function testGetAllTypesInSpecifications() { $types = $this->tripodConfig->getAllTypesInSpecifications("tripod_php_testing"); $this->assertEquals(11, count($types), "There should be 11 types based on the configured view, table and search specifications in config.json"); $expectedValues = array("acorn:Resource", "acorn:ResourceForTruncating", "acorn:Work", "http://talisaspire.com/schema#Work2", "acorn:Work2", "bibo:Book", "resourcelist:List", "spec:User", "bibo:Document", "baseData:Wibble", "baseData:DocWithSequence"); foreach ($expectedValues as $expected) { $this->assertContains($expected, $types, "List of types should have contained {$expected}"); } }