updated test routes
This commit is contained in:
		@@ -38,7 +38,7 @@ class AccountsTest extends FeatureTestCase
 | 
			
		||||
        $account = $this->dispatch(new CreateAccount($this->getRequest()));
 | 
			
		||||
 | 
			
		||||
        $this->loginAs()
 | 
			
		||||
            ->get(route('accounts.edit', ['account' => $account->id]))
 | 
			
		||||
            ->get(route('accounts.edit', $account->id))
 | 
			
		||||
            ->assertStatus(200)
 | 
			
		||||
            ->assertSee($account->name);
 | 
			
		||||
    }
 | 
			
		||||
@@ -52,7 +52,7 @@ class AccountsTest extends FeatureTestCase
 | 
			
		||||
        $request['name'] = $this->faker->text(5);
 | 
			
		||||
 | 
			
		||||
        $this->loginAs()
 | 
			
		||||
            ->patch(route('accounts.update', ['account' => $account->id]), $request)
 | 
			
		||||
            ->patch(route('accounts.update', $account->id), $request)
 | 
			
		||||
            ->assertStatus(200);
 | 
			
		||||
 | 
			
		||||
        $this->assertFlashLevel('success');
 | 
			
		||||
@@ -63,7 +63,7 @@ class AccountsTest extends FeatureTestCase
 | 
			
		||||
        $account = $this->dispatch(new CreateAccount($this->getRequest()));
 | 
			
		||||
 | 
			
		||||
        $this->loginAs()
 | 
			
		||||
            ->delete(route('accounts.destroy', ['account' => $account]))
 | 
			
		||||
            ->delete(route('accounts.destroy', $account->id))
 | 
			
		||||
            ->assertStatus(200);
 | 
			
		||||
 | 
			
		||||
        $this->assertFlashLevel('success');
 | 
			
		||||
 
 | 
			
		||||
@@ -37,7 +37,7 @@ class ReconciliationsTest extends FeatureTestCase
 | 
			
		||||
        $reconciliation = $this->dispatch(new CreateReconciliation($this->getReconciliationRequest()));
 | 
			
		||||
 | 
			
		||||
        $this->loginAs()
 | 
			
		||||
            ->get(route('reconciliations.edit', ['reconciliation' => $reconciliation->id]))
 | 
			
		||||
            ->get(route('reconciliations.edit', $reconciliation->id))
 | 
			
		||||
            ->assertStatus(200)
 | 
			
		||||
            ->assertSeeText(trans_choice('general.reconciliations', 2));
 | 
			
		||||
    }
 | 
			
		||||
@@ -62,7 +62,7 @@ class ReconciliationsTest extends FeatureTestCase
 | 
			
		||||
        $reconciliation = $this->dispatch(new CreateReconciliation($this->getReconciliationRequest()));
 | 
			
		||||
 | 
			
		||||
        $this->loginAs()
 | 
			
		||||
            ->delete(route('reconciliations.destroy', ['reconciliation' => $reconciliation]))
 | 
			
		||||
            ->delete(route('reconciliations.destroy', $reconciliation->id))
 | 
			
		||||
            ->assertStatus(200);
 | 
			
		||||
 | 
			
		||||
        $this->assertFlashLevel('success');
 | 
			
		||||
 
 | 
			
		||||
@@ -38,7 +38,7 @@ class TransfersTest extends FeatureTestCase
 | 
			
		||||
        $transfer = $this->dispatch(new CreateTransfer($this->getRequest()));
 | 
			
		||||
 | 
			
		||||
        $this->loginAs()
 | 
			
		||||
            ->get(route('transfers.edit', ['transfer' => $transfer->id]))
 | 
			
		||||
            ->get(route('transfers.edit', $transfer->id))
 | 
			
		||||
            ->assertStatus(200)
 | 
			
		||||
            ->assertSee($transfer->description);
 | 
			
		||||
    }
 | 
			
		||||
@@ -52,7 +52,7 @@ class TransfersTest extends FeatureTestCase
 | 
			
		||||
        $request['description'] = $this->faker->text(10);
 | 
			
		||||
 | 
			
		||||
        $this->loginAs()
 | 
			
		||||
            ->patch(route('transfers.update', ['transfer' => $transfer->id]), $request)
 | 
			
		||||
            ->patch(route('transfers.update', $transfer->id), $request)
 | 
			
		||||
            ->assertStatus(200);
 | 
			
		||||
 | 
			
		||||
        $this->assertFlashLevel('success');
 | 
			
		||||
@@ -63,7 +63,7 @@ class TransfersTest extends FeatureTestCase
 | 
			
		||||
        $transfer = $this->dispatch(new CreateTransfer($this->getRequest()));
 | 
			
		||||
 | 
			
		||||
        $this->loginAs()
 | 
			
		||||
            ->delete(route('transfers.destroy', ['transfer' => $transfer->id]))
 | 
			
		||||
            ->delete(route('transfers.destroy', $transfer->id))
 | 
			
		||||
            ->assertStatus(200);
 | 
			
		||||
 | 
			
		||||
        $this->assertFlashLevel('success');
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user