-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #248 from dkuzmenchuk/fix-undefined-method-call-in…
…-fake-models-command Rename method to get model's properties
- Loading branch information
Showing
3 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
Feature: Eloquent Model stub generating | ||
Stubs for Eloquent Models were correctly generated | ||
|
||
Background: | ||
Given I have the following config | ||
""" | ||
<?xml version="1.0"?> | ||
<psalm errorLevel="1" usePhpDocPropertiesWithoutMagicCall="true"> | ||
<projectFiles> | ||
<directory name="."/> | ||
<ignoreFiles> <directory name="../../vendor"/> </ignoreFiles> | ||
</projectFiles> | ||
<plugins> | ||
<pluginClass class="Psalm\LaravelPlugin\Plugin"/> | ||
</plugins> | ||
</psalm> | ||
""" | ||
|
||
Scenario: Generate stubs for Eloquent Models | ||
When I run Psalm | ||
Then Stubs were generated for these Eloquent Models | ||
| final class Car extends \Eloquent | | ||
| final class Comment extends \Eloquent | | ||
| final class Image extends \Eloquent | | ||
| final class Mechanic extends \Eloquent | | ||
| final class Phone extends \Eloquent | | ||
| final class Post extends \Eloquent | | ||
| final class Role extends \Eloquent | | ||
| final class Secret extends \Eloquent | | ||
| final class Tag extends \Eloquent | | ||
| final class User extends \Eloquent | | ||
| final class Video extends \Eloquent | |