Skip to content

Commit

Permalink
Report Tests Added
Browse files Browse the repository at this point in the history
  • Loading branch information
Batuhan Baş committed Dec 27, 2018
1 parent ed12662 commit e85397b
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/Feature/Reports/ExpenseSummaryTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace Tests\Feature\Reports;

use Tests\Feature\FeatureTestCase;

class ExpenseSummaryTest extends FeatureTestCase
{
public function testItShouldSeeExpenseSummaryPage()
{
$this->loginAs()
->get(url('reports/expense-summary'))
->assertStatus(200)
->assertSeeText(trans('reports.summary.expense'));
}
}
16 changes: 16 additions & 0 deletions tests/Feature/Reports/IncomeExpenseSumaryTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace Tests\Feature\Reports;

use Tests\Feature\FeatureTestCase;

class IncomeExpenseSummaryTest extends FeatureTestCase
{
public function testItShouldSeeIncomeExpenseSummaryPage()
{
$this->loginAs()
->get(url('reports/income-expense-summary'))
->assertStatus(200)
->assertSeeText(trans('reports.summary.income_expense'));
}
}
16 changes: 16 additions & 0 deletions tests/Feature/Reports/IncomeSummaryTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace Tests\Feature\Reports;

use Tests\Feature\FeatureTestCase;

class IncomeSummaryTest extends FeatureTestCase
{
public function testItShouldSeeIncomeSummaryPage()
{
$this->loginAs()
->get(url('reports/income-summary'))
->assertStatus(200)
->assertSeeText(trans('reports.summary.income'));
}
}
16 changes: 16 additions & 0 deletions tests/Feature/Reports/ProfitLossTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace Tests\Feature\Reports;

use Tests\Feature\FeatureTestCase;

class ProfitLossTest extends FeatureTestCase
{
public function testItShouldSeeProfitLossPage()
{
$this->loginAs()
->get(url('reports/profit-loss'))
->assertStatus(200)
->assertSeeText(trans('reports.profit_loss'));
}
}
16 changes: 16 additions & 0 deletions tests/Feature/Reports/TaxSummaryTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace Tests\Feature\Reports;

use Tests\Feature\FeatureTestCase;

class TaxSummaryTest extends FeatureTestCase
{
public function testItShouldSeeTaxSummaryPage()
{
$this->loginAs()
->get(url('reports/tax-summary'))
->assertStatus(200)
->assertSeeText(trans('reports.summary.tax'));
}
}

0 comments on commit e85397b

Please sign in to comment.