Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
project_browser
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
project_browser
Commits
233f6f6a
Commit
233f6f6a
authored
1 year ago
by
Tim Plunkett
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3375619
by tim.plunkett, chrisfromredfin: Fix test fails from upstream TUF changes
parent
1234a873
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!395
Issue #3375619: Fix test fails from upstream TUF changes
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/ProjectBrowserServiceProvider.php
+1
-1
1 addition, 1 deletion
src/ProjectBrowserServiceProvider.php
tests/src/Kernel/InstallerTest.php
+3
-2
3 additions, 2 deletions
tests/src/Kernel/InstallerTest.php
with
4 additions
and
3 deletions
src/ProjectBrowserServiceProvider.php
+
1
−
1
View file @
233f6f6a
...
...
@@ -19,7 +19,7 @@ use Drupal\package_manager\PathLocator;
use
Drupal\project_browser
\ComposerInstaller\Installer
;
use
Drupal\project_browser
\ComposerInstaller\Validator\CoreNotUpdatedValidator
;
use
Drupal\project_browser
\ComposerInstaller\Validator\PackageNotInstalledValidator
;
use
PhpTuf\ComposerStager\
Infrastructure
\Factory\
Path\
PathFactoryInterface
;
use
PhpTuf\ComposerStager\
API\Path
\Factory\PathFactoryInterface
;
use
Symfony\Component\DependencyInjection\Reference
;
class
ProjectBrowserServiceProvider
extends
ServiceProviderBase
{
...
...
This diff is collapsed.
Click to expand it.
tests/src/Kernel/InstallerTest.php
+
3
−
2
View file @
233f6f6a
...
...
@@ -12,7 +12,8 @@ use Drupal\package_manager_bypass\LoggingCommitter;
use
Drupal\package_manager_test_validation
\EventSubscriber\TestSubscriber
;
use
Drupal\Tests\package_manager
\Kernel\PackageManagerKernelTestBase
;
use
Drupal\Tests\user\Traits\UserCreationTrait
;
use
PhpTuf\ComposerStager\Domain\Exception\InvalidArgumentException
;
use
PhpTuf\ComposerStager\API\Exception\InvalidArgumentException
;
use
PhpTuf\ComposerStager\Internal\Translation\Value\TranslatableMessage
;
/**
* @coversDefaultClass \Drupal\project_browser\ComposerInstaller\Installer
...
...
@@ -85,7 +86,7 @@ class InstallerTest extends PackageManagerKernelTestBase {
$installer
=
$this
->
container
->
get
(
'project_browser.installer'
);
$installer
->
create
();
$installer
->
require
([
'org/package-name'
]);
$thrown_message
=
'A very bad thing happened'
;
$thrown_message
=
new
TranslatableMessage
(
'A very bad thing happened'
)
;
LoggingCommitter
::
setException
(
new
$thrown_class
(
$thrown_message
,
123
));
$this
->
expectException
(
$expected_class
);
$expected_message
=
$expected_class
===
ApplyFailedException
::
class
?
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment