mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-18 15:39:50 +00:00
Update test code.
This commit is contained in:
@@ -50,7 +50,7 @@ class AttachmentControllerTest extends TestCase
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\AttachmentController::delete
|
||||
*/
|
||||
public function testDelete()
|
||||
public function testDelete(): void
|
||||
{
|
||||
// mock stuff
|
||||
$attachRepository = $this->mock(AttachmentRepositoryInterface::class);
|
||||
@@ -66,7 +66,7 @@ class AttachmentControllerTest extends TestCase
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\AttachmentController::destroy
|
||||
*/
|
||||
public function testDestroy()
|
||||
public function testDestroy(): void
|
||||
{
|
||||
// mock stuff
|
||||
$journalRepos = $this->mock(JournalRepositoryInterface::class);
|
||||
@@ -84,7 +84,7 @@ class AttachmentControllerTest extends TestCase
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\AttachmentController::download
|
||||
*/
|
||||
public function testDownload()
|
||||
public function testDownload(): void
|
||||
{
|
||||
// mock stuff
|
||||
$journalRepos = $this->mock(JournalRepositoryInterface::class);
|
||||
@@ -104,7 +104,7 @@ class AttachmentControllerTest extends TestCase
|
||||
* @covers \FireflyIII\Http\Controllers\AttachmentController::download
|
||||
* @expectedExceptionMessage Could not find the indicated attachment
|
||||
*/
|
||||
public function testDownloadFail()
|
||||
public function testDownloadFail(): void
|
||||
{
|
||||
// mock stuff
|
||||
$journalRepos = $this->mock(JournalRepositoryInterface::class);
|
||||
@@ -120,7 +120,7 @@ class AttachmentControllerTest extends TestCase
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\AttachmentController::edit
|
||||
*/
|
||||
public function testEdit()
|
||||
public function testEdit(): void
|
||||
{
|
||||
$attachRepository = $this->mock(AttachmentRepositoryInterface::class);
|
||||
$journalRepos = $this->mock(JournalRepositoryInterface::class);
|
||||
@@ -136,7 +136,7 @@ class AttachmentControllerTest extends TestCase
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\AttachmentController::update
|
||||
*/
|
||||
public function testUpdate()
|
||||
public function testUpdate(): void
|
||||
{
|
||||
// mock stuff
|
||||
$journalRepos = $this->mock(JournalRepositoryInterface::class);
|
||||
@@ -161,7 +161,7 @@ class AttachmentControllerTest extends TestCase
|
||||
* @covers \FireflyIII\Http\Controllers\AttachmentController::view
|
||||
* @covers \FireflyIII\Http\Controllers\AttachmentController::__construct
|
||||
*/
|
||||
public function testView()
|
||||
public function testView(): void
|
||||
{
|
||||
$repository = $this->mock(AttachmentRepositoryInterface::class);
|
||||
$repository->shouldReceive('exists')->once()->andReturn(true);
|
||||
@@ -178,7 +178,7 @@ class AttachmentControllerTest extends TestCase
|
||||
* @covers \FireflyIII\Http\Controllers\AttachmentController::view
|
||||
* @covers \FireflyIII\Http\Controllers\AttachmentController::__construct
|
||||
*/
|
||||
public function testViewFail()
|
||||
public function testViewFail(): void
|
||||
{
|
||||
$repository = $this->mock(AttachmentRepositoryInterface::class);
|
||||
$repository->shouldReceive('exists')->once()->andReturn(false);
|
||||
|
||||
Reference in New Issue
Block a user