Skip to content
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

Add PackageSynchronize command #185

Merged
merged 3 commits into from
May 28, 2020
Merged

Conversation

karniv00l
Copy link
Contributor

No description provided.

@karniv00l karniv00l requested a review from akondas May 28, 2020 10:25
@codecov
Copy link

codecov bot commented May 28, 2020

Codecov Report

Merging #185 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #185   +/-   ##
=========================================
  Coverage     99.91%   99.91%           
- Complexity     1299     1303    +4     
=========================================
  Files           217      218    +1     
  Lines          3691     3706   +15     
=========================================
+ Hits           3688     3703   +15     
  Misses            3        3           
Impacted Files Coverage Δ Complexity Δ
src/Command/SynchronizePackageCommand.php 100.00% <100.00%> (ø) 4.00 <4.00> (?)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ed12079...7241888. Read the comment docs.

/** @var InMemoryTransport $transport */
$transport = $this->container()->get('messenger.transport.async');

self::assertCount(2, $transport->getSent());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why two?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is $this->fixtures->addPackage() before, but I've added $transport->reset() now so we are checking only what command is doing

@@ -124,7 +124,7 @@ public function testUpdateWhenRepoDontExist(): void
public function testThrowErrorWhenUpdateFails(): void
{
$this->expectException(ProcessFailedException::class);
$this->expectExceptionMessage('repository \'/tmp/repman/security-advisories-repo\' does not exist');
$this->expectExceptionMessage("repository '{$this->repoDir}' does not exist");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@akondas akondas merged commit 4a196e0 into repman-io:master May 28, 2020
@karniv00l karniv00l deleted the sync-command branch June 1, 2020 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants