Files
UNIT3D/tests/Feature/Http/Controllers/TopicLabelControllerTest.php
HDVinnie 987bed7a7b Apply fixes from StyleCI
[ci skip] [skip ci]
2020-02-13 21:45:47 +00:00

129 lines
3.8 KiB
PHP

<?php
namespace Tests\Feature\Http\Controllers;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
/**
* @see \App\Http\Controllers\TopicLabelController
*/
class TopicLabelControllerTest extends TestCase
{
use RefreshDatabase;
/**
* @test
*/
public function approve_returns_an_ok_response()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$user = factory(\App\Models\User::class)->create();
$response = $this->actingAs($user)->get(route('topics.approve', ['id' => $id]));
$response->assertRedirect(withInfo('Label Change Has Been Applied'));
// TODO: perform additional assertions
}
/**
* @test
*/
public function bug_returns_an_ok_response()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$user = factory(\App\Models\User::class)->create();
$response = $this->actingAs($user)->get(route('topics.bug', ['id' => $id]));
$response->assertRedirect(withInfo('Label Change Has Been Applied'));
// TODO: perform additional assertions
}
/**
* @test
*/
public function deny_returns_an_ok_response()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$user = factory(\App\Models\User::class)->create();
$response = $this->actingAs($user)->get(route('topics.deny', ['id' => $id]));
$response->assertRedirect(withInfo('Label Change Has Been Applied'));
// TODO: perform additional assertions
}
/**
* @test
*/
public function implement_returns_an_ok_response()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$user = factory(\App\Models\User::class)->create();
$response = $this->actingAs($user)->get(route('topics.implement', ['id' => $id]));
$response->assertRedirect(withInfo('Label Change Has Been Applied'));
// TODO: perform additional assertions
}
/**
* @test
*/
public function invalid_returns_an_ok_response()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$user = factory(\App\Models\User::class)->create();
$response = $this->actingAs($user)->get(route('topics.invalid', ['id' => $id]));
$response->assertRedirect(withInfo('Label Change Has Been Applied'));
// TODO: perform additional assertions
}
/**
* @test
*/
public function solve_returns_an_ok_response()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$user = factory(\App\Models\User::class)->create();
$response = $this->actingAs($user)->get(route('topics.solve', ['id' => $id]));
$response->assertRedirect(withInfo('Label Change Has Been Applied'));
// TODO: perform additional assertions
}
/**
* @test
*/
public function suggest_returns_an_ok_response()
{
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
$user = factory(\App\Models\User::class)->create();
$response = $this->actingAs($user)->get(route('topics.suggest', ['id' => $id]));
$response->assertRedirect(withInfo('Label Change Has Been Applied'));
// TODO: perform additional assertions
}
// test cases...
}