Skip to content

Commit

Permalink
Skip test case that behaves differently with older CakePHP versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ravage84 committed Apr 26, 2024
1 parent aaa021a commit b4167f8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/TestCase/Command/TemplateCommandTest.php
Expand Up @@ -439,6 +439,11 @@ public function testGetContentWithRoutingPrefix()
*/
public function testBakeView()
{
if (version_compare(Configure::version(), '4.5.0', '<')) {
$this->markTestSkipped(
'CakePHP versions older than 4.5.0 will generate `$author->profile->nick` instead of `$author->profile->id`'
);
}
$this->generatedFile = ROOT . 'templates/Authors/view.php';
$this->exec('bake template authors view');

Expand Down

0 comments on commit b4167f8

Please sign in to comment.