Skip to content

Commit b7e3234

Browse files
committed
Fix Psr 4 namespace on tests
1 parent 51a67ef commit b7e3234

32 files changed

Lines changed: 121 additions & 121 deletions

tests/Feature/AliasesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Feature;
3+
namespace Tests\Feature;
44

55
use Tests\TestCase;
66
use Typesense\Exceptions\ObjectNotFound;

tests/Feature/AnalyticsEventsTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Feature;
3+
namespace Tests\Feature;
44

55
use Tests\TestCase;
66
use Exception;
@@ -127,7 +127,7 @@ public function testCanRetrieveEventsWithAPI(): void
127127
"user_id" => "test_user"
128128
]
129129
];
130-
130+
131131
$this->client()->analytics->events()->create($event);
132132

133133
$response = $this->client()->analytics->events()->retrieve([
@@ -165,4 +165,4 @@ public function testCanCreateEventWithDifferentEventTypes(): void
165165
$conversionResponse = $this->client()->analytics->events()->create($conversionEvent);
166166
$this->assertIsArray($conversionResponse);
167167
}
168-
}
168+
}

tests/Feature/AnalyticsEventsV1Test.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Feature;
3+
namespace Tests\Feature;
44

55
use Tests\TestCase;
66
use Exception;
@@ -12,11 +12,11 @@ class AnalyticsEventsV1Test extends TestCase
1212
protected function setUp(): void
1313
{
1414
parent::setUp();
15-
15+
1616
if ($this->isV30OrAbove()) {
1717
$this->markTestSkipped('Analytics is deprecated in Typesense v30+');
1818
}
19-
19+
2020
$this->client()->collections->create([
2121
"name" => "products",
2222
"fields" => [
@@ -58,7 +58,7 @@ protected function setUp(): void
5858
protected function tearDown(): void
5959
{
6060
parent::tearDown();
61-
61+
6262
if (!$this->isV30OrAbove()) {
6363
try {
6464
$this->client()->analyticsV1->rules()->{'product_queries_aggregation'}->delete();

tests/Feature/AnalyticsRulesTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Feature;
3+
namespace Tests\Feature;
44

55
use Tests\TestCase;
66
use Typesense\Exceptions\RequestMalformed;
@@ -105,10 +105,10 @@ public function testCanCreateRulesWithAPI(): void
105105

106106
$response = $this->client()->analytics->rules()->create($rules);
107107
$this->assertIsArray($response);
108-
108+
109109
$allRules = $this->client()->analytics->rules()->retrieve();
110110
$this->assertIsArray($allRules);
111-
111+
112112
$ruleNames = array_column($allRules, 'name');
113113
$this->assertContains('test_rule_1', $ruleNames);
114114
$this->assertContains('test_rule_2', $ruleNames);
@@ -161,10 +161,10 @@ public function testArrayAccessCompatibility(): void
161161
{
162162
$rule = $this->client()->analytics->rules()[$this->ruleName];
163163
$this->assertInstanceOf('Typesense\AnalyticsRule', $rule);
164-
164+
165165
$this->assertTrue(isset($this->client()->analytics->rules()[$this->ruleName]));
166-
166+
167167
$rule = $this->client()->analytics->rules()[$this->ruleName];
168168
$this->assertInstanceOf('Typesense\AnalyticsRule', $rule);
169169
}
170-
}
170+
}

tests/Feature/AnalyticsRulesV1Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Feature;
3+
namespace Tests\Feature;
44

55
use Tests\TestCase;
66
use Typesense\Exceptions\ObjectNotFound;

0 commit comments

Comments
 (0)