public function testBarcode() { $barcode = '123456789'; $this->assertSame($this->entity, $this->entity->setBarcode($barcode)); $this->assertSame($barcode, $this->entity->getBarcode()); }