public function testGetName() { $contentType = new ContentType($this->contentTypeServiceMock, array('names' => array('eng-US' => 'Sindelfingen', 'eng-GB' => 'Bielefeld'))); $this->assertEquals('Sindelfingen', $contentType->getName('eng-US')); $this->assertEquals('Bielefeld', $contentType->getName('eng-GB')); }