Laravel-Test-Helpers icon indicating copy to clipboard operation
Laravel-Test-Helpers copied to clipboard

Easier testing in Laravel.

Results 35 Laravel-Test-Helpers issues
Sort by recently updated
recently updated
newest added

Now we can add ->withPivot() and ->withTimestamps() methods to model relationship methods without errors. ``` php return $this->belongsToMany('User')->withPivot('foo')->withTimestamps(); ``` This fixes issue #30.

I think it would be nice to add a navigation buttons in the files [here](https://github.com/JeffreyWay/Laravel-Test-Helpers/tree/master/docs) such that users can easily move from one file to the next when viewing them...

After installing and running phpunit I get error: Fatal error: Class 'Doctrine\DBAL\Driver\PDOMySql\Driver' not found in /vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php on line 59 Adding: `"doctrine/dbal": "~2.3"` to composer, and then running update, solves the...

I was looking at this line of code https://github.com/JeffreyWay/Laravel-Test-Helpers/blob/master/src/Way/Tests/Should.php#L28 and I start wondering if pluralizing is a good idea. Sure, it works with `assertEquals`, but not all asserts end with...

Fix make method to ensure it doesn’t save related models to db when create method has previously been used.

I use this code in my Post Model ``` public function testBasicFactory() { $post = Factory::attributesFor('Post'); } ``` and when I run phpunit, I got this error: PHP Fatal error:...

A fix for the issue of it currently not likely when relationships have more than one argument defined (e.g. belongsTo('table', 'key') would fail the validation). This fix checks how many...

add assertBelongsToMany, assertMorphTo and assertMorphMany to current assertions

When using Factory::make or Factory::create null value is being assigned to 'id' attribute of object. When the query is being generated it looks like INSERT INTO ('id' ...) VALUES (null,...

What I encounter is that Factory::product() does an sql query for categories when I use a Factory::create() call. ``` // create dummy data in db //$user = Factory::create('User'); $user =...