mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-16 22:58:09 +00:00
More cleanup.
This commit is contained in:
@@ -19,8 +19,8 @@ class AttachmentControllerTest extends TestCase
|
||||
public function testDelete()
|
||||
{
|
||||
$this->be($this->user());
|
||||
$response = $this->call('GET', '/attachment/delete/1');
|
||||
$this->assertEquals(200, $response->status());
|
||||
$this->call('GET', '/attachment/delete/1');
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -30,8 +30,8 @@ class AttachmentControllerTest extends TestCase
|
||||
{
|
||||
$this->be($this->user());
|
||||
$this->session(['attachments.delete.url' => 'http://localhost']);
|
||||
$response = $this->call('POST', '/attachment/destroy/2');
|
||||
$this->assertEquals(302, $response->status());
|
||||
$this->call('POST', '/attachment/destroy/2');
|
||||
$this->assertResponseStatus(302);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -40,8 +40,8 @@ class AttachmentControllerTest extends TestCase
|
||||
public function testDownload()
|
||||
{
|
||||
$this->be($this->user());
|
||||
$response = $this->call('GET', '/attachment/download/1');
|
||||
$this->assertEquals(200, $response->status());
|
||||
$this->call('GET', '/attachment/download/1');
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -50,8 +50,8 @@ class AttachmentControllerTest extends TestCase
|
||||
public function testEdit()
|
||||
{
|
||||
$this->be($this->user());
|
||||
$response = $this->call('GET', '/attachment/edit/1');
|
||||
$this->assertEquals(200, $response->status());
|
||||
$this->call('GET', '/attachment/edit/1');
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -60,8 +60,8 @@ class AttachmentControllerTest extends TestCase
|
||||
public function testPreview()
|
||||
{
|
||||
$this->be($this->user());
|
||||
$response = $this->call('GET', '/attachment/preview/1');
|
||||
$this->assertEquals(200, $response->status());
|
||||
$this->call('GET', '/attachment/preview/1');
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -78,8 +78,8 @@ class AttachmentControllerTest extends TestCase
|
||||
];
|
||||
$this->be($this->user());
|
||||
|
||||
$response = $this->call('POST', '/attachment/update/1', $args);
|
||||
$this->assertEquals(302, $response->status());
|
||||
$this->call('POST', '/attachment/update/1', $args);
|
||||
$this->assertResponseStatus(302);
|
||||
$this->assertSessionHas('success');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user