Skip to content

Commit

Permalink
ユニットテストを調整
Browse files Browse the repository at this point in the history
  • Loading branch information
dovanhung committed Nov 6, 2023
1 parent bf5006b commit aeebde6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public function setUp(): void
public function tearDown(): void
{
parent::tearDown();
$this->truncateTable('uploader_categories');
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public function setUp(): void
public function tearDown(): void
{
parent::tearDown();
$this->truncateTable('uploader_categories');
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public function tearDown(): void
{
unset($this->UploaderCategoriesTable);
parent::tearDown();
$this->truncateTable('uploader_categories');
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public function tearDown(): void
{
unset($this->UploaderCategoriesService);
parent::tearDown();
$this->truncateTable('uploader_categories');
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public function setUp(): void
public function tearDown(): void
{
parent::tearDown();
$this->truncateTable('uploader_files');
$this->truncateTable('uploader_categories');
}

Expand Down Expand Up @@ -86,7 +87,7 @@ public function test_clearCache()
//実行前の確認
$this->UploaderConfigsService->get();
$entity = $this->getPrivateProperty($this->UploaderConfigsService, 'entity');
$this->assertNull($entity);
$this->assertNotNull($entity);
//正常系実行
$this->UploaderConfigsService->clearCache();
$result = $this->getPrivateProperty($this->UploaderConfigsService, 'entity');
Expand Down

0 comments on commit aeebde6

Please sign in to comment.