-
Notifications
You must be signed in to change notification settings - Fork 14
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 #7 from biiiiiigmonster/phpunit
Phpunit
- Loading branch information
Showing
54 changed files
with
1,217 additions
and
4 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Path-based git attributes | ||
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html | ||
|
||
# Ignore all test and documentation with "export-ignore". | ||
/.github export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/phpunit.xml export-ignore | ||
/art export-ignore | ||
/database export-ignore | ||
/docs export-ignore | ||
/tests export-ignore | ||
/.editorconfig export-ignore | ||
/psalm.xml export-ignore | ||
/psalm.xml.dist export-ignore | ||
/testbench.yaml export-ignore | ||
/UPGRADING.md export-ignore |
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 |
---|---|---|
@@ -1,3 +1,10 @@ | ||
/vendor/ | ||
.idea | ||
/composer.lock | ||
.phpunit.result.cache | ||
build | ||
composer.lock | ||
coverage | ||
docs | ||
phpunit.xml | ||
testbench.yaml | ||
vendor | ||
node_modules |
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
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,24 @@ | ||
<?php | ||
|
||
namespace BiiiiiigMonster\Hasin\Database\Factories; | ||
|
||
use BiiiiiigMonster\Hasin\Tests\Models\Comment; | ||
use Illuminate\Database\Eloquent\Factories\Factory; | ||
|
||
class CommentFactory extends Factory | ||
{ | ||
protected $model = Comment::class; | ||
|
||
/** | ||
* Define the model's default state. | ||
* | ||
* @return array | ||
*/ | ||
public function definition() | ||
{ | ||
return [ | ||
'content' => $this->faker->sentence, | ||
'status' => $this->faker->numberBetween(0, 9), | ||
]; | ||
} | ||
} |
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,23 @@ | ||
<?php | ||
|
||
namespace BiiiiiigMonster\Hasin\Database\Factories; | ||
|
||
use BiiiiiigMonster\Hasin\Tests\Models\Country; | ||
use Illuminate\Database\Eloquent\Factories\Factory; | ||
|
||
class CountryFactory extends Factory | ||
{ | ||
protected $model = Country::class; | ||
|
||
/** | ||
* Define the model's default state. | ||
* | ||
* @return array | ||
*/ | ||
public function definition() | ||
{ | ||
return [ | ||
'name' => $this->faker->country | ||
]; | ||
} | ||
} |
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,23 @@ | ||
<?php | ||
|
||
namespace BiiiiiigMonster\Hasin\Database\Factories; | ||
|
||
use BiiiiiigMonster\Hasin\Tests\Models\History; | ||
use Illuminate\Database\Eloquent\Factories\Factory; | ||
|
||
class HistoryFactory extends Factory | ||
{ | ||
protected $model = History::class; | ||
|
||
/** | ||
* Define the model's default state. | ||
* | ||
* @return array | ||
*/ | ||
public function definition() | ||
{ | ||
return [ | ||
'content' => $this->faker->address | ||
]; | ||
} | ||
} |
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,23 @@ | ||
<?php | ||
|
||
namespace BiiiiiigMonster\Hasin\Database\Factories; | ||
|
||
use BiiiiiigMonster\Hasin\Tests\Models\Image; | ||
use Illuminate\Database\Eloquent\Factories\Factory; | ||
|
||
class ImageFactory extends Factory | ||
{ | ||
protected $model = Image::class; | ||
|
||
/** | ||
* Define the model's default state. | ||
* | ||
* @return array | ||
*/ | ||
public function definition() | ||
{ | ||
return [ | ||
'url' => $this->faker->url | ||
]; | ||
} | ||
} |
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,23 @@ | ||
<?php | ||
|
||
namespace BiiiiiigMonster\Hasin\Database\Factories; | ||
|
||
use BiiiiiigMonster\Hasin\Tests\Models\Phone; | ||
use Illuminate\Database\Eloquent\Factories\Factory; | ||
|
||
class PhoneFactory extends Factory | ||
{ | ||
protected $model = Phone::class; | ||
|
||
/** | ||
* Define the model's default state. | ||
* | ||
* @return array | ||
*/ | ||
public function definition() | ||
{ | ||
return [ | ||
'phone_number' => $this->faker->phoneNumber | ||
]; | ||
} | ||
} |
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,24 @@ | ||
<?php | ||
|
||
namespace BiiiiiigMonster\Hasin\Database\Factories; | ||
|
||
use BiiiiiigMonster\Hasin\Tests\Models\Post; | ||
use Illuminate\Database\Eloquent\Factories\Factory; | ||
|
||
class PostFactory extends Factory | ||
{ | ||
protected $model = Post::class; | ||
|
||
/** | ||
* Define the model's default state. | ||
* | ||
* @return array | ||
*/ | ||
public function definition() | ||
{ | ||
return [ | ||
'title' => $this->faker->title, | ||
'votes' => $this->faker->numberBetween(0, 100), | ||
]; | ||
} | ||
} |
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,23 @@ | ||
<?php | ||
|
||
namespace BiiiiiigMonster\Hasin\Database\Factories; | ||
|
||
use BiiiiiigMonster\Hasin\Tests\Models\Role; | ||
use Illuminate\Database\Eloquent\Factories\Factory; | ||
|
||
class RoleFactory extends Factory | ||
{ | ||
protected $model = Role::class; | ||
|
||
/** | ||
* Define the model's default state. | ||
* | ||
* @return array | ||
*/ | ||
public function definition() | ||
{ | ||
return [ | ||
'name' => $this->faker->name | ||
]; | ||
} | ||
} |
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,23 @@ | ||
<?php | ||
|
||
namespace BiiiiiigMonster\Hasin\Database\Factories; | ||
|
||
use BiiiiiigMonster\Hasin\Tests\Models\Supplier; | ||
use Illuminate\Database\Eloquent\Factories\Factory; | ||
|
||
class SupplierFactory extends Factory | ||
{ | ||
protected $model = Supplier::class; | ||
|
||
/** | ||
* Define the model's default state. | ||
* | ||
* @return array | ||
*/ | ||
public function definition() | ||
{ | ||
return [ | ||
'name' => $this->faker->name | ||
]; | ||
} | ||
} |
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,23 @@ | ||
<?php | ||
|
||
namespace BiiiiiigMonster\Hasin\Database\Factories; | ||
|
||
use BiiiiiigMonster\Hasin\Tests\Models\Tag; | ||
use Illuminate\Database\Eloquent\Factories\Factory; | ||
|
||
class TagFactory extends Factory | ||
{ | ||
protected $model = Tag::class; | ||
|
||
/** | ||
* Define the model's default state. | ||
* | ||
* @return array | ||
*/ | ||
public function definition() | ||
{ | ||
return [ | ||
'name' => $this->faker->name | ||
]; | ||
} | ||
} |
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,24 @@ | ||
<?php | ||
|
||
namespace BiiiiiigMonster\Hasin\Database\Factories; | ||
|
||
use BiiiiiigMonster\Hasin\Tests\Models\User; | ||
use Illuminate\Database\Eloquent\Factories\Factory; | ||
|
||
class UserFactory extends Factory | ||
{ | ||
protected $model = User::class; | ||
|
||
/** | ||
* Define the model's default state. | ||
* | ||
* @return array | ||
*/ | ||
public function definition() | ||
{ | ||
return [ | ||
'username' => $this->faker->userName, | ||
'age' => $this->faker->numberBetween(10, 30), | ||
]; | ||
} | ||
} |
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,23 @@ | ||
<?php | ||
|
||
namespace BiiiiiigMonster\Hasin\Database\Factories; | ||
|
||
use BiiiiiigMonster\Hasin\Tests\Models\Video; | ||
use Illuminate\Database\Eloquent\Factories\Factory; | ||
|
||
class VideoFactory extends Factory | ||
{ | ||
protected $model = Video::class; | ||
|
||
/** | ||
* Define the model's default state. | ||
* | ||
* @return array | ||
*/ | ||
public function definition() | ||
{ | ||
return [ | ||
'name' => $this->faker->name | ||
]; | ||
} | ||
} |
Oops, something went wrong.