Skip to content

Commit

Permalink
RestoreDataResourceTest
Browse files Browse the repository at this point in the history
  • Loading branch information
dafeder committed Jan 8, 2025
1 parent 315277f commit f7aa9bd
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions modules/common/tests/src/Unit/DataResourceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,21 @@
*/
class DataResourceTest extends TestCase {

/**
* Test getTableName().
*/
public function testGetTableName() {

$resource = new DataResource(
'/foo/bar',
'txt',
DataResource::DEFAULT_SOURCE_PERSPECTIVE
);
$tableName = $resource->getTableName();

$this->assertStringStartsWith('datastore_', $tableName);
}

/**
* Test getFolder().
*/
Expand Down

0 comments on commit f7aa9bd

Please sign in to comment.