mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
33 lines
932 B
PHP
33 lines
932 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Dev\Tests;
|
|
|
|
use SilverStripe\Dev\SapphireTest;
|
|
|
|
class SapphireTestTest extends SapphireTest
|
|
{
|
|
public function testResolveFixturePath()
|
|
{
|
|
// Same directory
|
|
$this->assertEquals(
|
|
__DIR__ . '/CsvBulkLoaderTest.yml',
|
|
$this->resolveFixturePath('./CsvBulkLoaderTest.yml')
|
|
);
|
|
// Filename only
|
|
$this->assertEquals(
|
|
__DIR__ . '/CsvBulkLoaderTest.yml',
|
|
$this->resolveFixturePath('CsvBulkLoaderTest.yml')
|
|
);
|
|
// Parent path
|
|
$this->assertEquals(
|
|
dirname(__DIR__) . '/ORM/DataObjectTest.yml',
|
|
$this->resolveFixturePath('../ORM/DataObjectTest.yml')
|
|
);
|
|
// Absolute path
|
|
$this->assertEquals(
|
|
dirname(__DIR__) . '/ORM/DataObjectTest.yml',
|
|
$this->resolveFixturePath(dirname(__DIR__) .'/ORM/DataObjectTest.yml')
|
|
);
|
|
}
|
|
}
|