File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ parameters:
1111 - app/Views/*
1212 ignoreErrors:
1313 - '#Call to an undefined method CodeIgniter\\Database\\ConnectionInterface::(en|dis)ableForeignKeyChecks#'
14- - '#Cannot access property [\$a-z_]+ on (array|object)#'
1514 universalObjectCratesClasses:
1615 - CodeIgniter\Entity
1716 - CodeIgniter\Entity\Entity
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ protected function setUp(): void
3434 public function testMakesValidMonster ()
3535 {
3636 // We can use make() to generate a random dataset defined in our Faker
37+ /** @var Monster $monster */
3738 $ monster = $ this ->fabricator ->make ();
3839
3940 $ this ->assertInstanceOf (Monster::class, $ monster );
@@ -53,6 +54,7 @@ public function testMakesMonsterWithDungeon()
5354 public function testCreateAddsToDatabase ()
5455 {
5556 // create() generates a random dataset just like make() but also adds it to the database for us
57+ /** @var Monster $monster */
5658 $ monster = $ this ->fabricator ->create ();
5759 $ this ->assertIsInt ($ monster ->id );
5860
You can’t perform that action at this time.
0 commit comments