. */ declare(strict_types=1); namespace Tests\Feature\Controllers; use FireflyIII\Models\TransactionJournal; use FireflyIII\Repositories\Journal\JournalRepositoryInterface; use FireflyIII\Repositories\User\UserRepositoryInterface; use Tests\TestCase; /** * Class ProfileControllerTest * * @package Tests\Feature\Controllers * @SuppressWarnings(PHPMD.TooManyPublicMethods) * @SuppressWarnings(PHPMD.ExcessiveMethodLength) * @SuppressWarnings(PHPMD.CouplingBetweenObjects) */ class ProfileControllerTest extends TestCase { /** * @covers \FireflyIII\Http\Controllers\ProfileController::changePassword */ public function testChangePassword() { // mock stuff $journalRepos = $this->mock(JournalRepositoryInterface::class); $journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal); $this->be($this->user()); $response = $this->get(route('profile.change-password')); $response->assertStatus(200); $response->assertSee('