for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Queue\Test\TestCase\Shell;
use Cake\TestSuite\TestCase;
use Queue\Queue\TaskFinder;
class TaskFinderTest extends TestCase
{
/**
*
* @var \Queue\Shell\QueueShell|\PHPUnit_Framework_MockObject_MockObject
*/
public $QueueShell;
* @var \Queue\Queue\TaskFinder
protected $taskFinder;
* Fixtures to load
* @var array
public $fixtures = [
'plugin.Queue.QueuedTasks',
];
* Setup Defaults
* @return void
public function setUp()
parent::setUp();
}
public function testAllAppAndPluginTasks()
$this->taskFinder = new TaskFinder();
$result = $this->taskFinder->allAppAndPluginTasks();
$this->assertCount(1, $result);
$this->assertArraySubset([
'Queue.QueueExample'
], $result);
$this->assertTrue(!in_array('Foo.QueueFoo', $result));