mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-18 15:39:50 +00:00
Code cleanup.
This commit is contained in:
@@ -18,12 +18,10 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Tests\Feature\Controllers;
|
||||
|
||||
|
||||
use FireflyIII\Generator\Report\Audit\YearReportGenerator as AYRG;
|
||||
use FireflyIII\Generator\Report\Budget\YearReportGenerator as BYRG;
|
||||
use FireflyIII\Generator\Report\Category\YearReportGenerator as CYRG;
|
||||
@@ -46,14 +44,12 @@ use Tests\TestCase;
|
||||
/**
|
||||
* Class ReportControllerTest
|
||||
*
|
||||
* @package Tests\Feature\Controllers
|
||||
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||
*/
|
||||
class ReportControllerTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\ReportController::auditReport
|
||||
*/
|
||||
@@ -68,7 +64,6 @@ class ReportControllerTest extends TestCase
|
||||
$generator->shouldReceive('setAccounts')->once();
|
||||
$generator->shouldReceive('generate')->andReturn('here-be-report')->once();
|
||||
|
||||
|
||||
$this->be($this->user());
|
||||
$response = $this->get(route('reports.report.audit', [1, '20160101', '20160131']));
|
||||
$response->assertStatus(200);
|
||||
@@ -189,7 +184,6 @@ class ReportControllerTest extends TestCase
|
||||
$budget = factory(Budget::class)->make();
|
||||
$budgetRepos->shouldReceive('getBudgets')->andReturn(new Collection([$budget]));
|
||||
|
||||
|
||||
$this->be($this->user());
|
||||
$response = $this->get(route('reports.options', ['budget']));
|
||||
$response->assertStatus(200);
|
||||
@@ -458,5 +452,4 @@ class ReportControllerTest extends TestCase
|
||||
$response = $this->get(route('reports.report.tag', [1, 'TagJanuary', '20160101', '20160131']));
|
||||
$response->assertStatus(200);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user