File tree Expand file tree Collapse file tree 5 files changed +8
-7
lines changed Expand file tree Collapse file tree 5 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 7
7
use Illuminate \Database \Eloquent \Relations \Relation ;
8
8
use Rappasoft \LaravelLivewireTables \DataTableComponent ;
9
9
use Rappasoft \LaravelLivewireTables \Tests \Models \Pet ;
10
- use Rappasoft \LaravelLivewireTables \Tests \Models \Species ;
11
10
use Rappasoft \LaravelLivewireTables \Views \Column ;
12
11
13
12
class PetVeterinariesTable extends DataTableComponent
@@ -35,7 +34,8 @@ public function columns(): array
35
34
];
36
35
}
37
36
38
- public function count (): int {
37
+ public function count (): int
38
+ {
39
39
return $ this ->selectedRowsQuery ()->count ();
40
40
}
41
41
}
Original file line number Diff line number Diff line change @@ -66,7 +66,8 @@ public function breed()
66
66
return $ this ->belongsTo (Breed::class);
67
67
}
68
68
69
- public function veterinaries (): BelongsToMany {
69
+ public function veterinaries (): BelongsToMany
70
+ {
70
71
return $ this ->belongsToMany (Veterinary::class);
71
72
}
72
73
}
Original file line number Diff line number Diff line change 3
3
4
4
namespace Rappasoft \LaravelLivewireTables \Tests \Models ;
5
5
6
-
7
6
use Illuminate \Database \Eloquent \Model ;
8
7
use Illuminate \Database \Eloquent \Relations \BelongsToMany ;
9
8
@@ -39,7 +38,8 @@ class Veterinary extends Model
39
38
'phone ' ,
40
39
];
41
40
42
- public function pets (): BelongsToMany {
41
+ public function pets (): BelongsToMany
42
+ {
43
43
return $ this ->belongsToMany (Pet::class);
44
44
}
45
45
}
Original file line number Diff line number Diff line change @@ -101,7 +101,8 @@ public function search_filter_callback(): void
101
101
}
102
102
103
103
/** @test */
104
- public function bulk_actions (){
104
+ public function bulk_actions ()
105
+ {
105
106
$ this ->table ->selected [] = 1 ;
106
107
$ this ->assertEquals (1 , $ this ->table ->count ());
107
108
}
Original file line number Diff line number Diff line change 9
9
use Rappasoft \LaravelLivewireTables \Tests \Models \Pet ;
10
10
use Rappasoft \LaravelLivewireTables \Tests \Models \Species ;
11
11
use Rappasoft \LaravelLivewireTables \Tests \Models \Veterinary ;
12
- use Symfony \Component \Console \Helper \Table ;
13
12
14
13
class TestCase extends Orchestra
15
14
{
You can’t perform that action at this time.
0 commit comments