-
Notifications
You must be signed in to change notification settings - Fork 566
5.x: upgrade to PHPUnit 10 #940
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,6 +12,7 @@ nbproject/* | |
| .vscode | ||
| .DS_Store | ||
| .cache | ||
| .phpunit.cache | ||
| .project | ||
| .settings | ||
| .svn | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -55,8 +55,8 @@ public function setUp(): void | |
| $connection = ConnectionManager::get('test'); | ||
| $this->skipIf($connection->getDriver() instanceof Sqlite, 'Schema insertion/removal breaks SQLite'); | ||
| $this->oldConfig = Configure::read('DebugKit'); | ||
| $this->restore = $GLOBALS['__PHPUNIT_BOOTSTRAP']; | ||
| unset($GLOBALS['__PHPUNIT_BOOTSTRAP']); | ||
| $this->restore = $GLOBALS['FORCE_DEBUGKIT_TOOLBAR']; | ||
| $GLOBALS['FORCE_DEBUGKIT_TOOLBAR'] = true; | ||
| } | ||
|
|
||
| /** | ||
|
|
@@ -69,7 +69,7 @@ public function tearDown(): void | |
| parent::tearDown(); | ||
|
|
||
| Configure::write('DebugKit', $this->oldConfig); | ||
| $GLOBALS['__PHPUNIT_BOOTSTRAP'] = $this->restore; | ||
| $GLOBALS['FORCE_DEBUGKIT_TOOLBAR'] = $this->restore; | ||
| } | ||
|
|
||
| protected function handler() | ||
|
|
@@ -125,7 +125,7 @@ public function testInvokeSaveData() | |
| $this->assertNotNull($result->panels[11]->summary); | ||
| $this->assertSame('Sql Log', $result->panels[11]->title); | ||
|
|
||
| $timeStamp = filemtime(Plugin::path('DebugKit') . 'webroot' . DS . 'js' . DS . 'main.js'); | ||
| $timeStamp = filectime(Plugin::path('DebugKit') . 'webroot' . DS . 'js' . DS . 'main.js'); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It should be Line was previously incorrectly updated when .js file was renamed. And
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tried that but for some reason its not working... haven't looked too deep into it though. |
||
|
|
||
| $expected = '<html><title>test</title><body><p>some text</p>' . | ||
| '<script id="__debug_kit_script" data-id="' . $result->id . '" ' . | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of course they break my hacks 😆
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just re-introduced a new hack 😁