Source of file AddProductFormTest.php
Size: 0,758 Bytes - Last Modified: 2021-12-24T06:35:03+00:00
/var/www/docs.ssmods.com/process/src/tests/php/Forms/AddProductFormTest.php
12345678910111213141516171819202122232425262728293031 | <?php namespace SilverShop\Tests\Forms; use SilverShop\Forms\AddProductForm; use SilverShop\Page\Product; use SilverShop\Page\ProductController; use SilverStripe\Dev\FunctionalTest; class AddProductFormTest extends FunctionalTest { public static $fixture_file = "../Fixtures/shop.yml"; public function testForm() { $controller = ProductController::create($this->objFromFixture(Product::class, "socks")); $form = AddProductForm::create($controller); $form->setMaximumQuantity(10); $this->markTestIncomplete("test can't go over max quantity"); $data = array( 'Quantity' => 4, ); $form->addtocart($data, $form); $this->markTestIncomplete('check quantity'); } } |