You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
use Darksparrow\DeegraphInteractions\Exceptions\QueryBuilderConflictingFieldAlreadyExistsException;
|
|
|
|
use Darksparrow\DeegraphInteractions\QueryBuilder\QueryBuilder;
|
|
|
|
use Darksparrow\DeegraphInteractions\QueryBuilder\QueryBuilderTrait;
|
|
|
|
use Darksparrow\DeegraphInteractions\Utilities\RelativePath;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
|
|
|
|
final class ValidateDeegraphPathTest extends TestCase
|
|
|
|
{
|
|
|
|
public function testValidUUID()
|
|
|
|
{
|
|
|
|
self::assertTrue(RelativePath::Validate("{00000000-0000-0000-0000-000000000000}"));
|
|
|
|
}
|
|
|
|
public function testHash()
|
|
|
|
{
|
|
|
|
self::assertTrue(RelativePath::Validate("#"));
|
|
|
|
}
|
|
|
|
public function testNumber()
|
|
|
|
{
|
|
|
|
self::assertTrue(RelativePath::Validate("123"));
|
|
|
|
}
|
|
|
|
}
|