Skip to content

Commit

Permalink
expand testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul M. Jones committed May 29, 2021
1 parent 48802b1 commit b79a2d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 6 additions & 0 deletions tests/MapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,12 @@ public function testPersist_allNew()
$this->assertSame($thread->thread_id, $thread->summary->thread_id);
$this->assertSame($thread->taggings[0]->thread_id, $thread->thread_id);
$this->assertSame($thread->taggings[1]->thread_id, $thread->thread_id);

// now detach the tags and re-persist
$thread->tags->detachAll();
$this->mapperLocator->get(Thread::CLASS)->persist($thread);
$this->assertCount(0, $thread->taggings);
$this->assertCount(0, $thread->tags);
}

public function testPersist_updateManyToOne()
Expand Down
1 change: 0 additions & 1 deletion tests/Relationship/ManyToManyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ public function testForeignPersist_basic()
'tags'
]);


$this->assertNotSame($before->taggings, $after->taggings);
$expect = array (
array (
Expand Down

0 comments on commit b79a2d7

Please sign in to comment.