eZ\Publish\Core\Repository\Tests\Service\Integration\ContentTypeBase::testLoadContentTypesIdentifiers PHP Метод

testLoadContentTypesIdentifiers() публичный Метод

Test for the loadContentTypeGroups() method.
public testLoadContentTypesIdentifiers ( array $types )
$types array
    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.');
    }
ContentTypeBase