For $fieldType an object / callable is expected, in case of callable factory it should return
the FieldType object.
The FieldType object must comply to the {@link \eZ\Publish\SPI\FieldType\FieldType} interface.
/** * @covers \eZ\Publish\Core\Persistence\FieldTypeRegistry::register * * @return void */ public function testRegister() { $fieldType = $this->getFieldTypeMock(); $registry = new FieldTypeRegistry(array()); $registry->register("some-type", $fieldType); $this->assertAttributeSame(array("some-type" => $fieldType), "coreFieldTypeMap", $registry); }