mirror of
https://github.com/wearepixel/laravel-quickbooks.git
synced 2026-11-14 14:01:46 +00:00
- Widen illuminate/* deps to ^10.0|^11.0|^12.0, require PHP ^8.3 - Upgrade PHPUnit to ^10.5|^11.0, Mockery to ^1.6 - Rewrite phpunit.xml.dist for PHPUnit 10+ format (source/include replaces filter/whitelist, removed deprecated attributes) - Replace $dates with $casts on Token model - Implement DeferrableProvider interface instead of $defer property on ClientServiceProvider - Use FQCN route definitions instead of string-based namespace() - Fix migration getColumnType() check for Laravel 11+ native types - Replace @test doc annotations with #[Test] attributes - Fix dynamic property deprecation in ControllerTest
37 lines
676 B
PHP
37 lines
676 B
PHP
<?php
|
|
|
|
namespace Wearepixel\QuickBooks;
|
|
|
|
use PHPUnit\Framework\Attributes\Test;
|
|
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_has_one_relationship_to_token()
|
|
{
|
|
$this->assertInstanceOf(Token::class, $this->user->quickBooksToken()->getModel());
|
|
}
|
|
}
|