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

Added full support for Eloquent's relationship methods with tests.

Open rand0mb1ts opened this issue 11 years ago • 1 comments

All parameters for the 4 standard eloquent relationship methods are supported.

Added 13 tests for the relationship assertion methods.

Update: I added the ability to use the QueryBuilder methods. Example:

public function posts() { return $this->hasMany('Post')->where('post_id', '<', 100)->take(10); }

Please note, only the relationship is tested. As of now you cannot test the inputs to the QueryBuilder methods.

rand0mb1ts avatar Jun 11 '13 09:06 rand0mb1ts

+1

binarix avatar Jun 11 '13 13:06 binarix