Skip to content

Commit 83c072b

Browse files
committed
tests fixed
1 parent d8afa65 commit 83c072b

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

tests/Unit/RepositoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ public function it_can_smart_paginate_if_request_parametert_is_string()
379379

380380
$result = $repository->smartPaginate();
381381

382-
$this->assertEquals(5, $result->perPage());
382+
$this->assertEquals(100, $result->perPage());
383383
}
384384

385385
/** @test */

tests/Unit/Scopes/OrWhereLikeTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace AwesIO\Repository\Tests\Unit\Scopes;
44

5+
use Illuminate\Support\Str;
56
use AwesIO\Repository\Tests\TestCase;
67
use AwesIO\Repository\Tests\Stubs\Model;
78
use AwesIO\Repository\Scopes\Clauses\OrWhereLikeScope;
@@ -19,7 +20,7 @@ public function it_scopes()
1920

2021
$results = $scope->scope(
2122
new Model,
22-
str_after($model->name, $model->name[0]),
23+
Str::after($model->name, $model->name[0]),
2324
'name'
2425
)->get();
2526

@@ -40,13 +41,13 @@ public function it_scopes_by_orwhere_clause()
4041

4142
$builder = $scope->scope(
4243
new Model,
43-
str_after($model1->name, $model1->name[0]),
44+
Str::after($model1->name, $model1->name[0]),
4445
'name'
4546
);
4647

4748
$results = $scope->scope(
4849
$builder,
49-
str_after($model2->name, $model2->name[0]),
50+
Str::after($model2->name, $model2->name[0]),
5051
'name'
5152
)->get();
5253

tests/Unit/Scopes/WhereLikeTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace AwesIO\Repository\Tests\Unit\Scopes;
44

5+
use Illuminate\Support\Str;
56
use AwesIO\Repository\Tests\TestCase;
67
use AwesIO\Repository\Tests\Stubs\Model;
78
use AwesIO\Repository\Scopes\Clauses\WhereLikeScope;
@@ -19,7 +20,7 @@ public function it_scopes()
1920

2021
$results = $scope->scope(
2122
new Model,
22-
str_after($model->name, $model->name[0]),
23+
Str::after($model->name, $model->name[0]),
2324
'name'
2425
)->get();
2526

@@ -40,7 +41,7 @@ public function it_scopes_by_where_clause()
4041

4142
$builder = $scope->scope(
4243
new Model,
43-
str_after($model1->name, $model1->name[0]),
44+
Str::after($model1->name, $model1->name[0]),
4445
'name'
4546
);
4647

0 commit comments

Comments
 (0)