diff --git a/src/entity/image/UrlImage.php b/src/entity/image/UrlImage.php new file mode 100644 index 0000000..95f8d3e --- /dev/null +++ b/src/entity/image/UrlImage.php @@ -0,0 +1,21 @@ +product = new Product(); + $this->price = new Price(); + $this->image = new UrlImage(); + $this->product->setImage($this->image); + $this->product->setPrice($this->price); + $this->product->setColor(self::COLOR); + $this->product->setId(self::ID); + $this->product->setName(self::NAME); + } + + public function testImage():void{ + $this->assertInstanceOf(UrlImage::class, $this->product->getImage()); + } + + public function testPrice():void{ + $this->assertInstanceOf(Price::class, $this->product->getPrice()); + } + + public function testColor():void{ + $this->assertEquals(self::COLOR, $this->product->getColor()); + } + + public function testId():void{ + $this->assertEquals(self::ID, $this->product->getId()); + } + + public function testName():void{ + $this->assertEquals(self::NAME, $this->product->getColor()); + } +} + diff --git a/src/entity/user/UserInterface.php b/src/entity/user/UserInterface.php index 739b58c..de2b892 100644 --- a/src/entity/user/UserInterface.php +++ b/src/entity/user/UserInterface.php @@ -40,10 +40,5 @@ interface UserInterface * @return string */ public function getEmail():string; - - /** - * @return int - */ - public function getId():int; }