Domain\Billet\BilletRepositoryTest::test_cant_twice_pay PHP Method

test_cant_twice_pay() public method

public test_cant_twice_pay ( )
    public function test_cant_twice_pay()
    {
        $today = Carbon::today();
        $billet = factory(Billet::class)->create(['discharge_date' => null]);
        $repo = App::make(BilletRepository::class);
        $response = $repo->pay($billet->id, $today);
        $this->setExpectedException(RepositoryException::class);
        $response = $repo->pay($billet->id, $today);
    }