/**
  * Should limit product name length to < 100 characters.
  */
 public function testLimitsNameLength()
 {
     $productName = $this->generator()->anyString(200);
     $this->mockModelAttribute('name', $productName);
     $this->assertLessThan(104, mb_strlen($this->productPresenter->name()));
 }
Esempio n. 2
0
 /**
  * @param ProductPresenter $product
  *
  * @return string
  */
 public function productEnquiryMail(ProductPresenter $product) : string
 {
     return 'mailto:ching@ching-shop.com?subject=' . "I would like to buy '{$product->name()}' ({$product->sku()})";
 }