public function testLoadContentTypesIdentifiers(array $types) { $expectedIdentifiers = array('test-type-1' => true, 'test-type-2' => true); $this->assertEquals(count($expectedIdentifiers), count($types)); $actualIdentifiers = array('test-type-1' => false, 'test-type-2' => false); foreach ($types as $type) { $actualIdentifiers[$type->identifier] = true; } $this->assertEquals($expectedIdentifiers, $actualIdentifiers, 'Identifier mismatch in loaded types.'); }