| 1 |
<?php |
| 2 |
|
| 3 |
use PHPUnit\Framework\TestCase; |
| 4 |
use ResponsiveMenu\Controllers\AdminController; |
| 5 |
|
| 6 |
class AdminControllerTest extends TestCase { |
| 7 |
|
| 8 |
private $view_mock; |
| 9 |
private $manager_mock; |
| 10 |
|
| 11 |
public function setUp() { |
| 12 |
$this->view_mock = $this->createMock('ResponsiveMenu\View\View'); |
| 13 |
$this->manager_mock = $this->createMock('ResponsiveMenu\Management\OptionManager'); |
| 14 |
} |
| 15 |
|
| 16 |
public function testAllMethod() { |
| 17 |
$controller = new AdminController($this->manager_mock, $this->view_mock); |
| 18 |
$controller->index('foo', 'bar'); |
| 19 |
} |
| 20 |
|
| 21 |
} |
| 22 |
|