Skip to content

Commit fcb038b

Browse files
authored
Merge pull request josegonzalez#45 from jeremyharris/tests
Fixed remaining deprecations and cake 4 changes
2 parents fc0f6ae + baa9d71 commit fcb038b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/TestCase/Model/Behavior/VersionBehaviorTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -468,13 +468,13 @@ public function testAssociations()
468468
);
469469
$table->addBehavior('Josegonzalez/Version.Version');
470470

471-
$this->assertTrue($table->associations()->has('articleversion'));
472-
$versions = $table->getAssociation('articleversion');
471+
$this->assertTrue($table->associations()->has('ArticleVersion'));
472+
$versions = $table->getAssociation('ArticleVersion');
473473
$this->assertInstanceOf('Cake\Orm\Association\HasMany', $versions);
474474
$this->assertEquals('__version', $versions->getProperty());
475475

476-
$this->assertTrue($table->associations()->has('articlebodyversion'));
477-
$bodyVersions = $table->getAssociation('articlebodyversion');
476+
$this->assertTrue($table->associations()->has('ArticleBodyVersion'));
477+
$bodyVersions = $table->getAssociation('ArticleBodyVersion');
478478
$this->assertInstanceOf('Cake\Orm\Association\HasMany', $bodyVersions);
479479
$this->assertEquals('body_version', $bodyVersions->getProperty());
480480
}

0 commit comments

Comments
 (0)