Browse Source

test using optional parameters

1.0
Claudio Zizza 10 years ago committed by Claudio Zizza
parent
commit
4c4d76bd2d
  1. 4
      tests/MageTest/Task/FactoryTest.php

4
tests/MageTest/Task/FactoryTest.php

@ -33,9 +33,9 @@ class FactoryTest extends PHPUnit_Framework_TestCase
/** /**
* @dataProvider taskDataProvider * @dataProvider taskDataProvider
*/ */
public function testGetWith($taskData) public function testGetWithOptionalParams($taskData)
{ {
$task = Factory::get($taskData, $this->config); $task = Factory::get($taskData, $this->config, true, 'production');
$this->assertInstanceOf('\\Mage\\Task\\AbstractTask', $task); $this->assertInstanceOf('\\Mage\\Task\\AbstractTask', $task);
} }

Loading…
Cancel
Save