Skip to content

Commit b4167f8

Browse files
committed
Skip test case that behaves differently with older CakePHP versions
1 parent aaa021a commit b4167f8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/TestCase/Command/TemplateCommandTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,11 @@ public function testGetContentWithRoutingPrefix()
439439
*/
440440
public function testBakeView()
441441
{
442+
if (version_compare(Configure::version(), '4.5.0', '<')) {
443+
$this->markTestSkipped(
444+
'CakePHP versions older than 4.5.0 will generate `$author->profile->nick` instead of `$author->profile->id`'
445+
);
446+
}
442447
$this->generatedFile = ROOT . 'templates/Authors/view.php';
443448
$this->exec('bake template authors view');
444449

0 commit comments

Comments
 (0)