We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 899e545 commit d9d2aa9Copy full SHA for d9d2aa9
app/Entities/Monster.php
@@ -9,6 +9,8 @@
9
*
10
* This class represents a single row in the
11
* `monsters` database.
12
+ *
13
+ * @property int $dungeon_id
14
*/
15
class Monster extends Entity
16
{
tests/database/FakerTest.php
@@ -43,8 +43,8 @@ public function testMakesValidMonster()
43
// Since our Faker uses Fabricator counts for its dungeon_id we should always have a valid dungeon available
44
public function testMakesMonsterWithDungeon()
45
46
+ /** @var Monster $monster */
47
$monster = $this->fabricator->make();
- /** @var Dungeon $dungeon */
48
$dungeon = model(DungeonModel::class)->find($monster->dungeon_id);
49
50
$this->assertInstanceOf(Dungeon::class, $dungeon);
0 commit comments