mirror of
https://github.com/BillyOutlast/UNIT3D.git
synced 2026-02-07 12:41:20 +01:00
129 lines
3.8 KiB
PHP
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...
|
|
}
|