Example #1
0
 /**
  * @test
  */
 public function shouldHaveErrorsWhenModelIsNotValid()
 {
     //given
     $product = new Product(array());
     //when
     $product->isValid();
     //then
     $this->assertNotEmpty($product->getErrors());
     $this->assertNotEmpty($product->getErrorFields());
 }