mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 16:22:14 +00:00
splitted user name
This commit is contained in:
23
tests/Support/Helpers/HelperTest.php
Normal file
23
tests/Support/Helpers/HelperTest.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
namespace Tests\Support\Helpers;
|
||||
|
||||
use Tests\TestCase;
|
||||
|
||||
class HelperTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @test
|
||||
*/
|
||||
public function it_test_split_name()
|
||||
{
|
||||
$firstTest = split_name('Jane Doe');
|
||||
|
||||
$this->assertEquals('Jane', $firstTest['first_name']);
|
||||
$this->assertEquals('Doe', $firstTest['last_name']);
|
||||
|
||||
$secondTest = split_name('Jane Doe Hobs');
|
||||
|
||||
$this->assertEquals('Jane', $secondTest['first_name']);
|
||||
$this->assertEquals('Doe Hobs', $secondTest['last_name']);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user