Skip to content

Commit

Permalink
Fixed assertion description in test for feature la-haute-societe#15
Browse files Browse the repository at this point in the history
  • Loading branch information
sspat committed Jun 7, 2017
1 parent 13f660e commit 865c9a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/SaveRelationsBehaviorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ public function testSaveNewManyRelationJunctionTableColumnsShouldSucceed()
$secondTag
];
$this->assertTrue($project->save(), 'Project could not be saved');
$this->assertCount(2, $project->tags, 'Project should have 4 tags after assignment');
$this->assertCount(2, $project->tags, 'Project should have 2 tags after assignment');

$firstTagJunctionTableColumns = (new \yii\db\Query())->from('project_tags')->where(['tag_id' => $firstTag->id])->one();
$secondTagJunctionTableColumns = (new \yii\db\Query())->from('project_tags')->where(['tag_id' => $secondTag->id])->one();
Expand Down

0 comments on commit 865c9a0

Please sign in to comment.