More cleanup.

This commit is contained in:
James Cole
2016-01-24 18:11:57 +01:00
parent 7b2fe8eb4a
commit a013553a6c
18 changed files with 227 additions and 225 deletions

View File

@@ -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');
}
}