Laravel-Test-Helpers
Laravel-Test-Helpers copied to clipboard
Added full support for Eloquent's relationship methods with tests.
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.
+1