@@ -48,9 +48,9 @@ public function testDetachRemovesPivotTableRecord()
48
48
$ relation = $ this ->getMockBuilder (MorphToMany::class)->onlyMethods (['touchIfTouching ' ])->setConstructorArgs ($ this ->getRelationArguments ())->getMock ();
49
49
$ query = m::mock (stdClass::class);
50
50
$ query ->shouldReceive ('from ' )->once ()->with ('taggables ' )->andReturn ($ query );
51
- $ query ->shouldReceive ('where ' )->once ()->with ('taggable_id ' , 1 )->andReturn ($ query );
51
+ $ query ->shouldReceive ('where ' )->once ()->with ('taggables. taggable_id ' , 1 )->andReturn ($ query );
52
52
$ query ->shouldReceive ('where ' )->once ()->with ('taggable_type ' , get_class ($ relation ->getParent ()))->andReturn ($ query );
53
- $ query ->shouldReceive ('whereIn ' )->once ()->with ('tag_id ' , [1 , 2 , 3 ]);
53
+ $ query ->shouldReceive ('whereIn ' )->once ()->with ('taggables. tag_id ' , [1 , 2 , 3 ]);
54
54
$ query ->shouldReceive ('delete ' )->once ()->andReturn (true );
55
55
$ relation ->getQuery ()->shouldReceive ('getQuery ' )->andReturn ($ mockQueryBuilder = m::mock (stdClass::class));
56
56
$ mockQueryBuilder ->shouldReceive ('newQuery ' )->once ()->andReturn ($ query );
@@ -64,7 +64,7 @@ public function testDetachMethodClearsAllPivotRecordsWhenNoIDsAreGiven()
64
64
$ relation = $ this ->getMockBuilder (MorphToMany::class)->onlyMethods (['touchIfTouching ' ])->setConstructorArgs ($ this ->getRelationArguments ())->getMock ();
65
65
$ query = m::mock (stdClass::class);
66
66
$ query ->shouldReceive ('from ' )->once ()->with ('taggables ' )->andReturn ($ query );
67
- $ query ->shouldReceive ('where ' )->once ()->with ('taggable_id ' , 1 )->andReturn ($ query );
67
+ $ query ->shouldReceive ('where ' )->once ()->with ('taggables. taggable_id ' , 1 )->andReturn ($ query );
68
68
$ query ->shouldReceive ('where ' )->once ()->with ('taggable_type ' , get_class ($ relation ->getParent ()))->andReturn ($ query );
69
69
$ query ->shouldReceive ('whereIn ' )->never ();
70
70
$ query ->shouldReceive ('delete ' )->once ()->andReturn (true );
0 commit comments