25 lines
653 B
PHP
25 lines
653 B
PHP
<?php
|
|
|
|
namespace Tests\Helper;
|
|
|
|
use Tests\TestCase;
|
|
use App\Helpers\RandomHelper;
|
|
use Illuminate\Foundation\Testing\WithoutMiddleware;
|
|
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
|
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
|
|
|
class RandomHelperTest extends TestCase
|
|
{
|
|
public function testThatGenerateStringReturnsTheRightLength()
|
|
{
|
|
$randomString = RandomHelper::generateString(30);
|
|
$this->assertTrue(30 == strlen($randomString));
|
|
}
|
|
|
|
public function testThatGenerateStringIsNotEmpty()
|
|
{
|
|
$randomString = RandomHelper::generateString(30);
|
|
$this->assertNotNull($randomString);
|
|
}
|
|
}
|