Skip to content

Commit 7eb6584

Browse files
jirkasemmlerthemark147
authored andcommitted
Fix stan
1 parent acec942 commit 7eb6584

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

tests/Backend/Snowflake/WorkspacesReaderTest.php

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ class WorkspacesReaderTest extends ParallelWorkspacesTestCase
1717
use WorkspaceConnectionTrait;
1818
use WorkspaceCredentialsAssertTrait;
1919

20-
private const TABLE = 'CREW';
21-
private const NON_EXISTING_WORKSPACE_ID = 2147483647;
2220

2321
public function setUp(): void
2422
{
@@ -51,18 +49,17 @@ public function testLoadToReaderAccount(): void
5149
$components->addConfiguration((new Configuration())
5250
->setComponentId('wr-db')
5351
->setConfigurationId('main-1')
54-
->setName('TMP_RA jirka')
52+
->setName('readerWS')
5553
->setDescription('some desc'));
5654

5755
$components = new Components($branchClient);
5856
$workspaces = new Workspaces($branchClient);
5957

60-
$workspace = $components->createConfigurationWorkspace($componentId, $configurationId, ['async' => false], false);
61-
// $workspace = $components->createConfigurationWorkspace($componentId, $configurationId, ['async' => false, 'useCase' => 'reader'], false);
58+
$workspace = $components->createConfigurationWorkspace($componentId, $configurationId, ['useCase' => 'reader'],);
6259

6360
//setup test tables
6461
$tableId = $this->_client->createTableAsync(
65-
$this->getTestBucketId(self::STAGE_IN),
62+
$this->getTestBucketId(),
6663
'languages',
6764
new CsvFile(__DIR__ . '/../../_data/languages.csv'),
6865
);
@@ -75,7 +72,7 @@ public function testLoadToReaderAccount(): void
7572
],
7673
[
7774
'source' => $tableId,
78-
'destination' => 'languagesfiltered',
75+
'destination' => 'languages_filtered',
7976
'overwrite' => false,
8077
'whereColumn' => 'id',
8178
'whereValues' => [1],
@@ -89,7 +86,7 @@ public function testLoadToReaderAccount(): void
8986
$data = $db->fetchAll('languages');
9087
$this->assertCount(5, $data);
9188

92-
$data = $db->fetchAll('languagesfiltered');
89+
$data = $db->fetchAll('languages_filtered');
9390
$this->assertCount(1, $data);
9491
}
9592

@@ -104,13 +101,13 @@ public function testLoadCloneToReaderAccount(): void
104101
$components->addConfiguration((new Configuration())
105102
->setComponentId('wr-db')
106103
->setConfigurationId('main-1')
107-
->setName('TMP_RA jirka')
104+
->setName('readerWS_clone')
108105
->setDescription('some desc'));
109106

110107
$components = new Components($branchClient);
111108
$workspaces = new Workspaces($branchClient);
112109

113-
$workspace = $components->createConfigurationWorkspace($componentId, $configurationId, ['async' => false], false);
110+
$workspace = $components->createConfigurationWorkspace($componentId, $configurationId, ['useCase' => 'reader']);
114111

115112
//setup test tables
116113
$tableId = $this->_client->createTableAsync(

0 commit comments

Comments
 (0)