mirror of
https://github.com/wearepixel/laravel-quickbooks.git
synced 2026-11-14 14:01:46 +00:00
40 lines
672 B
PHP
40 lines
672 B
PHP
<?php
|
|
|
|
namespace Wearepixel\QuickBooks;
|
|
|
|
use Wearepixel\QuickBooks\Stubs\User;
|
|
|
|
/**
|
|
* Class HasQuickBooksTokenTest
|
|
*/
|
|
class HasQuickBooksTokenTest extends TestCase
|
|
{
|
|
/**
|
|
* @var User
|
|
*/
|
|
protected $user;
|
|
|
|
protected function setUp(): void
|
|
{
|
|
parent::setUp();
|
|
|
|
$this->user = new User();
|
|
}
|
|
|
|
/**
|
|
* @test
|
|
*/
|
|
public function it_can_be_constructed()
|
|
{
|
|
$this->assertInstanceOf(User::class, $this->user);
|
|
}
|
|
|
|
/**
|
|
* @test
|
|
*/
|
|
public function it_has_a_hasOne_relationship_to_token()
|
|
{
|
|
$this->assertInstanceOf(Token::class, $this->user->quickBooksToken()->getModel());
|
|
}
|
|
}
|