41a77ddd87
* Update to Laravel 5.7 * Backport new Laravel 5.7 configurations * Replace karakus/laravel-cloudflare with monicahq/laravel-cloudflare
27 lines
634 B
PHP
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);
|
|
}
|
|
}
|