mirror of
https://github.com/wearepixel/laravel-quickbooks.git
synced 2026-11-14 14:01:46 +00:00
- Replace phpunit/phpunit with pestphp/pest ^3.0 - Drop scrutinizer/ocular (incompatible with Pest's symfony/console) - Add tests/Pest.php with MockeryPHPUnitIntegration trait binding - Extract namespace-level function stubs (config, route, dir) to tests/Overrides.php, loaded via autoload-dev files - Convert all 5 test classes to Pest closure-based syntax: setUp() → beforeEach(), assertions → expect(), skip() for skipped tests - Delete tests/TestCase.php (logic moved to Pest.php) - Stubs (TokenStub, User) unchanged
17 lines
380 B
PHP
17 lines
380 B
PHP
<?php
|
|
|
|
use Wearepixel\QuickBooks\Stubs\User;
|
|
use Wearepixel\QuickBooks\Token;
|
|
|
|
beforeEach(function () {
|
|
$this->user = new User;
|
|
});
|
|
|
|
it('can be constructed', function () {
|
|
expect($this->user)->toBeInstanceOf(User::class);
|
|
});
|
|
|
|
it('has a hasOne relationship to token', function () {
|
|
expect($this->user->quickBooksToken()->getModel())->toBeInstanceOf(Token::class);
|
|
});
|