Created
May 21, 2015 01:43
-
-
Save markstory/8aefc51d36498bf980df to your computer and use it in GitHub Desktop.
issue 6446
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
App::uses('ArticlesController', 'Controller'); | |
/** | |
* ArticlesController Test Case | |
* | |
*/ | |
class ArticlesControllerTest extends ControllerTestCase { | |
/** | |
* Fixtures | |
* | |
* @var array | |
*/ | |
public $fixtures = array( | |
'app.article', | |
'app.comment' | |
); | |
public function testItWorks() | |
{ | |
$this->assertTrue(true); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class BugShell extends Shell { | |
public function main() { | |
$this->dispatchShell('-app ' . APP . ' test app --debug'); | |
$this->out('done'); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ Console/cake bug | |
Welcome to CakePHP v2.6.4 Console | |
--------------------------------------------------------------- | |
App : app | |
Path: /Users/markstory/Sites/cake_dev/app/ | |
--------------------------------------------------------------- | |
Welcome to CakePHP v2.6.4 Console | |
--------------------------------------------------------------- | |
App : app | |
Path: /Users/markstory/Sites/cake_dev/app/ | |
--------------------------------------------------------------- | |
CakePHP Test Shell | |
--------------------------------------------------------------- | |
App Test Cases: | |
[1] Controller/ArticlesController | |
[2] Controller/CategoriesController | |
[3] Controller/Component/MyAuthComponent | |
[4] Controller/DemosController | |
[5] Controller/NewsController | |
[6] Controller/PostsController | |
[7] Controller/TasksController | |
[8] Controller/UsersController | |
[9] Model/Article | |
[10] Model/Author | |
[11] Model/Comment | |
[12] Model/HedgeStrike | |
[13] Model/Paste | |
[14] Model/Post | |
[15] Model/ReportItem | |
[16] Model/Session | |
[17] Model/Task | |
[18] Model/Url | |
What test case would you like to run? | |
[q] > 1 | |
PHPUnit 3.7.38 by Sebastian Bergmann. | |
Starting test 'ArticlesControllerTest::testItWorks'. | |
. | |
Time: 2.45 seconds, Memory: 7.75Mb | |
OK (1 test, 1 assertion) | |
:) 21:43:37 markstory:app (2.6) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment