. */ declare(strict_types=1); namespace Tests\Feature\Controllers; use Log; use Tests\TestCase; /** * Class RuleControllerTest * * @SuppressWarnings(PHPMD.TooManyPublicMethods) * @SuppressWarnings(PHPMD.ExcessiveMethodLength) * @SuppressWarnings(PHPMD.CouplingBetweenObjects) */ class RuleControllerTest extends TestCase { /** * */ public function setUp(): void { parent::setUp(); Log::info(sprintf('Now in %s.', get_class($this))); } /** * @covers \FireflyIII\Http\Controllers\Json\RuleController */ public function testAction(): void { $this->mockDefaultSession(); // mock stuff $this->be($this->user()); $response = $this->get(route('json.action')); $response->assertStatus(200); } /** * @covers \FireflyIII\Http\Controllers\Json\RuleController */ public function testTrigger(): void { $this->mockDefaultSession(); // mock stuff $this->be($this->user()); $response = $this->get(route('json.trigger')); $response->assertStatus(200); } }