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