mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 15:44:33 -04:00
Fixes for tests
This commit is contained in:
parent
89d68c5d46
commit
1dda57c1fd
@ -40,6 +40,8 @@ class SchedulerTest extends TestCase
|
|||||||
use WithoutEvents;
|
use WithoutEvents;
|
||||||
use DatabaseTransactions;
|
use DatabaseTransactions;
|
||||||
|
|
||||||
|
protected $faker;
|
||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
@ -594,12 +596,6 @@ class SchedulerTest extends TestCase
|
|||||||
$scheduler->save();
|
$scheduler->save();
|
||||||
$scheduler->calculateNextRun();
|
$scheduler->calculateNextRun();
|
||||||
|
|
||||||
// $service_object = new SchedulerService($scheduler);
|
|
||||||
|
|
||||||
// $reflectionMethod = new \ReflectionMethod(SchedulerService::class, 'calculateNextRun');
|
|
||||||
// $reflectionMethod->setAccessible(true);
|
|
||||||
// $method = $reflectionMethod->invoke(new SchedulerService($scheduler));
|
|
||||||
|
|
||||||
$scheduler->fresh();
|
$scheduler->fresh();
|
||||||
$offset = $this->company->timezone_offset();
|
$offset = $this->company->timezone_offset();
|
||||||
|
|
||||||
@ -634,7 +630,7 @@ class SchedulerTest extends TestCase
|
|||||||
|
|
||||||
$reflectionMethod = new \ReflectionMethod(EmailStatementService::class, 'calculateStartAndEndDates');
|
$reflectionMethod = new \ReflectionMethod(EmailStatementService::class, 'calculateStartAndEndDates');
|
||||||
$reflectionMethod->setAccessible(true);
|
$reflectionMethod->setAccessible(true);
|
||||||
$method = $reflectionMethod->invoke(new EmailStatementService($scheduler));
|
$method = $reflectionMethod->invoke(new EmailStatementService($scheduler), $this->client);
|
||||||
|
|
||||||
$this->assertIsArray($method);
|
$this->assertIsArray($method);
|
||||||
|
|
||||||
@ -668,7 +664,7 @@ class SchedulerTest extends TestCase
|
|||||||
|
|
||||||
$reflectionMethod = new \ReflectionMethod(EmailStatementService::class, 'calculateStatementProperties');
|
$reflectionMethod = new \ReflectionMethod(EmailStatementService::class, 'calculateStatementProperties');
|
||||||
$reflectionMethod->setAccessible(true);
|
$reflectionMethod->setAccessible(true);
|
||||||
$method = $reflectionMethod->invoke(new EmailStatementService($scheduler)); // 'baz'
|
$method = $reflectionMethod->invoke(new EmailStatementService($scheduler), $this->client);
|
||||||
|
|
||||||
$this->assertIsArray($method);
|
$this->assertIsArray($method);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user