mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-03-11 02:49:44 +01:00
Move beUser into Abstract class
This commit is contained in:
parent
4d8b340397
commit
f06e9cc88f
@ -35,4 +35,15 @@ abstract class AbstractTestCase extends TestCase
|
||||
|
||||
return $app;
|
||||
}
|
||||
|
||||
/**
|
||||
* Becomes a user.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function beUser()
|
||||
{
|
||||
$this->user = factory('CachetHQ\Cachet\Models\User')->create();
|
||||
$this->be($this->user);
|
||||
}
|
||||
}
|
||||
|
@ -67,10 +67,4 @@ class ComponentTest extends AbstractTestCase
|
||||
$this->get('/api/v1/components/1');
|
||||
$this->seeJson(['name' => 'Foo']);
|
||||
}
|
||||
|
||||
protected function beUser()
|
||||
{
|
||||
$this->user = factory('CachetHQ\Cachet\Models\User')->create();
|
||||
$this->be($this->user);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user