Skip to content

Commit d7d8fe8

Browse files
committed
fix: phpunit errors and lint remaining files
1 parent 1281909 commit d7d8fe8

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

css/ableplayer_transcript.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,3 @@
2222
.able-status-bar {
2323
height: 2em !important;
2424
}
25-

js/ableplayer_transcript_placement.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242

4343
// Start observing
4444
observer.observe(document.body, {
45-
childList: true,
46-
subtree: true
45+
childList: TRUE,
46+
subtree: TRUE
4747
});
4848
})
4949

src/Functional/LoadTest.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,21 @@
44

55
use Drupal\Core\Url;
66
use Drupal\Tests\BrowserTestBase;
7+
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
78

89
/**
910
* Simple test to ensure that main page loads with module enabled.
1011
*
1112
* @group ableplayer_extend
1213
*/
14+
#[RunTestsInSeparateProcesses]
1315
class LoadTest extends BrowserTestBase {
1416

17+
/**
18+
* {@inheritdoc}
19+
*/
20+
protected $defaultTheme = 'stark';
21+
1522
/**
1623
* Modules to enable.
1724
*
@@ -40,7 +47,7 @@ protected function setUp(): void {
4047
*/
4148
public function testLoad() {
4249
$this->drupalGet(Url::fromRoute('<front>'));
43-
$this->assertSession()->responseContains('200');
50+
$this->assertSession()->statusCodeEquals(200);
4451
}
4552

4653
}

0 commit comments

Comments
 (0)