@@ -2017,16 +2017,17 @@ public function testReplicateQuietlyCreatesANewModelInstanceWithSameAttributeVal
2017
2017
2018
2018
public function testIncrementOnExistingModelCallsQueryAndSetsAttribute ()
2019
2019
{
2020
- $ model = m::mock (EloquentModelStub::class.'[newQueryWithoutRelationships ] ' );
2020
+ $ model = m::mock (EloquentModelStub::class.'[newQueryWithoutScopes ] ' );
2021
2021
$ model ->exists = true ;
2022
2022
$ model ->id = 1 ;
2023
2023
$ model ->syncOriginalAttribute ('id ' );
2024
2024
$ model ->foo = 2 ;
2025
2025
2026
- $ model ->shouldReceive ('newQueryWithoutRelationships ' )->andReturn ($ query = m::mock (stdClass::class));
2026
+ $ model ->shouldReceive ('newQueryWithoutScopes ' )->andReturn ($ query = m::mock (stdClass::class));
2027
2027
$ query ->shouldReceive ('where ' )->andReturn ($ query );
2028
2028
$ query ->shouldReceive ('increment ' );
2029
2029
2030
+ // hmm
2030
2031
$ model ->publicIncrement ('foo ' , 1 );
2031
2032
$ this ->assertFalse ($ model ->isDirty ());
2032
2033
@@ -2038,13 +2039,13 @@ public function testIncrementOnExistingModelCallsQueryAndSetsAttribute()
2038
2039
2039
2040
public function testIncrementQuietlyOnExistingModelCallsQueryAndSetsAttributeAndIsQuiet ()
2040
2041
{
2041
- $ model = m::mock (EloquentModelStub::class.'[newQueryWithoutRelationships ] ' );
2042
+ $ model = m::mock (EloquentModelStub::class.'[newQueryWithoutScopes ] ' );
2042
2043
$ model ->exists = true ;
2043
2044
$ model ->id = 1 ;
2044
2045
$ model ->syncOriginalAttribute ('id ' );
2045
2046
$ model ->foo = 2 ;
2046
2047
2047
- $ model ->shouldReceive ('newQueryWithoutRelationships ' )->andReturn ($ query = m::mock (stdClass::class));
2048
+ $ model ->shouldReceive ('newQueryWithoutScopes ' )->andReturn ($ query = m::mock (stdClass::class));
2048
2049
$ query ->shouldReceive ('where ' )->andReturn ($ query );
2049
2050
$ query ->shouldReceive ('increment ' );
2050
2051
@@ -2065,13 +2066,13 @@ public function testIncrementQuietlyOnExistingModelCallsQueryAndSetsAttributeAnd
2065
2066
2066
2067
public function testDecrementQuietlyOnExistingModelCallsQueryAndSetsAttributeAndIsQuiet ()
2067
2068
{
2068
- $ model = m::mock (EloquentModelStub::class.'[newQueryWithoutRelationships ] ' );
2069
+ $ model = m::mock (EloquentModelStub::class.'[newQueryWithoutScopes ] ' );
2069
2070
$ model ->exists = true ;
2070
2071
$ model ->id = 1 ;
2071
2072
$ model ->syncOriginalAttribute ('id ' );
2072
2073
$ model ->foo = 4 ;
2073
2074
2074
- $ model ->shouldReceive ('newQueryWithoutRelationships ' )->andReturn ($ query = m::mock (stdClass::class));
2075
+ $ model ->shouldReceive ('newQueryWithoutScopes ' )->andReturn ($ query = m::mock (stdClass::class));
2075
2076
$ query ->shouldReceive ('where ' )->andReturn ($ query );
2076
2077
$ query ->shouldReceive ('decrement ' );
2077
2078
0 commit comments