File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
tests/TestCase/Controller/Admin Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 55use Cake \Datasource \ConnectionManager ;
66use Cake \I18n \FrozenTime ;
77use Cake \TestSuite \IntegrationTestCase ;
8+ use Queue \Controller \Admin \QueueController ;
9+ use Shim \TestSuite \TestTrait ;
10+ use Tools \Utility \FrozenTime as UtilityFrozenTime ;
811
912/**
1013 * @uses \Queue\Controller\Admin\QueueController
1114 */
1215class QueueControllerTest extends IntegrationTestCase {
1316
17+ use TestTrait;
18+
1419 /**
1520 * Fixtures
1621 *
@@ -30,6 +35,18 @@ public function setUp(): void {
3035 $ this ->disableErrorHandlerMiddleware ();
3136 }
3237
38+ /**
39+ * @return void
40+ */
41+ public function testLoadHelpers (): void {
42+ $ controller = new QueueController ();
43+ $ this ->invokeMethod ($ controller , 'loadHelpers ' );
44+
45+ $ view = $ controller ->createView ();
46+ $ engine = $ view ->Time ->getConfig ('engine ' );
47+ $ this ->assertSame (UtilityFrozenTime::class, $ engine );
48+ }
49+
3350 /**
3451 * Test index method
3552 *
You can’t perform that action at this time.
0 commit comments