Files
monica/tests/Feature/VersionCheckTest.php
T
Alexis Saettler 41a77ddd87 chore(deps): update to Laravel 5.7 (#1803)
* Update to Laravel 5.7
* Backport new Laravel 5.7 configurations
* Replace karakus/laravel-cloudflare with monicahq/laravel-cloudflare
2018-10-05 13:38:48 +02:00

27 lines
634 B
PHP

<?php
namespace Tests\Feature;
use Tests\FeatureTestCase;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class VersionCheckTest extends FeatureTestCase
{
use DatabaseTransactions;
/**
* If an instance sets `version_check` env variable to false, the command
* should exit with 0.
*
* @return void
*/
public function test_check_version_set_to_false_disables_the_check()
{
config(['monica.check_version' => false]);
$this->withoutMockingConsoleOutput();
$resultCommand = $this->artisan('monica:ping');
$this->assertEquals(0, $resultCommand);
}
}