for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* QuestionTest
*/
namespace FRUIT\Shopize\Tests\Unit\Domain\Model;
use FRUIT\Shopize\Domain\Model\Voucher;
class VoucherTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
{
* @var Voucher
protected $fileDomainModelInstance;
* Setup
*
* @return void
protected function setUp()
$this->fileDomainModelInstance = new Voucher();
}
* @test
public function codeCanBeSet()
$code = 'a6g87fg0na98sdf';
$this->fileDomainModelInstance->setCode($code);
$this->assertEquals($code, $this->fileDomainModelInstance->getCode());