mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-11-04 05:15:39 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			69 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			69 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
/**
 | 
						|
 * UserControllerTest.php
 | 
						|
 * Copyright (C) 2016 thegrumpydictator@gmail.com
 | 
						|
 *
 | 
						|
 * This software may be modified and distributed under the terms of the
 | 
						|
 * Creative Commons Attribution-ShareAlike 4.0 International License.
 | 
						|
 *
 | 
						|
 * See the LICENSE file for details.
 | 
						|
 */
 | 
						|
 | 
						|
namespace Admin;
 | 
						|
 | 
						|
use TestCase;
 | 
						|
 | 
						|
/**
 | 
						|
 * Generated by PHPUnit_SkeletonGenerator on 2016-12-07 at 18:50:31.
 | 
						|
 */
 | 
						|
class UserControllerTest extends TestCase
 | 
						|
{
 | 
						|
 | 
						|
 | 
						|
    /**
 | 
						|
     * Sets up the fixture, for example, opens a network connection.
 | 
						|
     * This method is called before a test is executed.
 | 
						|
     */
 | 
						|
    public function setUp()
 | 
						|
    {
 | 
						|
        parent::setUp();
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * @covers \FireflyIII\Http\Controllers\Admin\UserController::edit
 | 
						|
     */
 | 
						|
    public function testEdit()
 | 
						|
    {
 | 
						|
        $this->be($this->user());
 | 
						|
        $this->call('GET', route('admin.users.edit', [1]));
 | 
						|
        $this->assertResponseStatus(200);
 | 
						|
        // has bread crumb
 | 
						|
        $this->see('<ol class="breadcrumb">');
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * @covers \FireflyIII\Http\Controllers\Admin\UserController::index
 | 
						|
     */
 | 
						|
    public function testIndex()
 | 
						|
    {
 | 
						|
        $this->be($this->user());
 | 
						|
        $this->call('GET', route('admin.users'));
 | 
						|
        $this->assertResponseStatus(200);
 | 
						|
        // has bread crumb
 | 
						|
        $this->see('<ol class="breadcrumb">');
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * @covers \FireflyIII\Http\Controllers\Admin\UserController::show
 | 
						|
     */
 | 
						|
    public function testShow()
 | 
						|
    {
 | 
						|
        $this->be($this->user());
 | 
						|
        $this->call('GET', route('admin.users.edit', [1]));
 | 
						|
        $this->assertResponseStatus(200);
 | 
						|
        // has bread crumb
 | 
						|
        $this->see('<ol class="breadcrumb">');
 | 
						|
    }
 | 
						|
 | 
						|
}
 |