mirror of
https://github.com/Karaka-Management/oms-Marketing.git
synced 2026-02-08 06:28:40 +00:00
fix tests and replace file_exists
This commit is contained in:
parent
e57dc289d9
commit
95773e3969
|
|
@ -27,6 +27,10 @@ use phpOMS\Utils\RnG\Text;
|
|||
*/
|
||||
class PromotionMapperTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @covers Modules\Marketing\Models\PromotionMapper
|
||||
* @group module
|
||||
*/
|
||||
public function testCRUD() : void
|
||||
{
|
||||
$promotion = new Promotion();
|
||||
|
|
@ -86,6 +90,10 @@ class PromotionMapperTest extends \PHPUnit\Framework\TestCase
|
|||
self::assertEquals(\end($expected)->getName(), \end($actual)->getName());
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Marketing\Models\PromotionMapper
|
||||
* @group module
|
||||
*/
|
||||
public function testNewest() : void
|
||||
{
|
||||
$newest = PromotionMapper::getNewest(1);
|
||||
|
|
|
|||
|
|
@ -24,6 +24,10 @@ use phpOMS\Localization\Money;
|
|||
*/
|
||||
class PromotionTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @covers Modules\Marketing\Models\Promotion
|
||||
* @group module
|
||||
*/
|
||||
public function testDefault() : void
|
||||
{
|
||||
$promotion = new Promotion();
|
||||
|
|
@ -44,6 +48,10 @@ class PromotionTest extends \PHPUnit\Framework\TestCase
|
|||
self::assertInstanceOf('\Modules\Tasks\Models\Task', $promotion->getTask(0));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Marketing\Models\Promotion
|
||||
* @group module
|
||||
*/
|
||||
public function testSetGet() : void
|
||||
{
|
||||
$promotion = new Promotion();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user