mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Baked test methods are marked incomplete.
Previously empty (and "passing") test methods now include PHPunit's `markTestIncomplete()` to better reflect the truth of the resulting file: The test methods are stubbed out, but are not yet complete and passing. It is much easier when _running_ tests to locate incomplete test methods. Fixes 2437.
This commit is contained in:
parent
8578708e76
commit
bfdc41e8bb
2 changed files with 3 additions and 0 deletions
|
@ -75,6 +75,7 @@ class <?php echo $fullClassName; ?>Test extends CakeTestCase {
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function test<?php echo Inflector::camelize($method); ?>() {
|
public function test<?php echo Inflector::camelize($method); ?>() {
|
||||||
|
$this->markTestIncomplete('test<?php echo Inflector::camelize($method); ?> not implemented.');
|
||||||
}
|
}
|
||||||
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
|
|
@ -413,6 +413,8 @@ class TestTaskTest extends CakeTestCase {
|
||||||
|
|
||||||
$this->assertContains('function testDoSomething()', $result);
|
$this->assertContains('function testDoSomething()', $result);
|
||||||
$this->assertContains('function testDoSomethingElse()', $result);
|
$this->assertContains('function testDoSomethingElse()', $result);
|
||||||
|
$this->assertContains('$this->markTestIncomplete(\'testDoSomething not implemented.\')', $result);
|
||||||
|
$this->assertContains('$this->markTestIncomplete(\'testDoSomethingElse not implemented.\')', $result);
|
||||||
|
|
||||||
$this->assertContains("'app.test_task_article'", $result);
|
$this->assertContains("'app.test_task_article'", $result);
|
||||||
$this->assertContains("'app.test_task_comment'", $result);
|
$this->assertContains("'app.test_task_comment'", $result);
|
||||||
|
|
Loading…
Add table
Reference in a new issue