Skip to content

Commit

Permalink
Merge pull request #45 from jeremyharris/tests
Browse files Browse the repository at this point in the history
Fixed remaining deprecations and cake 4 changes
  • Loading branch information
josegonzalez authored Jul 12, 2021
2 parents fc0f6ae + baa9d71 commit fcb038b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/TestCase/Model/Behavior/VersionBehaviorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -468,13 +468,13 @@ public function testAssociations()
);
$table->addBehavior('Josegonzalez/Version.Version');

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

$this->assertTrue($table->associations()->has('articlebodyversion'));
$bodyVersions = $table->getAssociation('articlebodyversion');
$this->assertTrue($table->associations()->has('ArticleBodyVersion'));
$bodyVersions = $table->getAssociation('ArticleBodyVersion');
$this->assertInstanceOf('Cake\Orm\Association\HasMany', $bodyVersions);
$this->assertEquals('body_version', $bodyVersions->getProperty());
}
Expand Down

0 comments on commit fcb038b

Please sign in to comment.