mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-18 05:58:18 +01:00
37 lines
752 B
PHP
37 lines
752 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Cachet.
|
|
*
|
|
* (c) Alt Three Services Limited
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace CachetHQ\Tests\Cachet\Api;
|
|
|
|
use CachetHQ\Cachet\Models\User;
|
|
use CachetHQ\Tests\Cachet\AbstractTestCase;
|
|
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
|
|
|
/**
|
|
* This is the abstract api test case class.
|
|
*
|
|
* @author Graham Campbell <graham@alt-three.com>
|
|
*/
|
|
abstract class AbstractApiTestCase extends AbstractTestCase
|
|
{
|
|
use DatabaseMigrations;
|
|
|
|
/**
|
|
* Become a user.
|
|
*/
|
|
protected function beUser()
|
|
{
|
|
$this->user = factory(User::class)->create();
|
|
|
|
$this->be($this->user);
|
|
}
|
|
}
|