Files
monica/tests/Helper/RandomHelperTest.php
T
2017-02-16 19:21:44 -05:00

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);
}
}