/** * @test */ public function setFieldsWithSourcesForbiddenValidateResult() { $fieldsNotToBindAutoToImplicitSource = ['fieldA', 'fieldB', 'fieldC']; $result = $this->classMetadata->setFieldsNotToBindAutoToImplicitSource($fieldsNotToBindAutoToImplicitSource); $this->assertSame($this->classMetadata, $result); $this->assertEquals($fieldsNotToBindAutoToImplicitSource, $this->classMetadata->getFieldsNotToBindAutoToImplicitSource()); }