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

Feature/gestpay #72

Merged
merged 3 commits into from
Nov 6, 2018
Merged

Feature/gestpay #72

merged 3 commits into from
Nov 6, 2018

Conversation

sangarbe
Copy link
Member

@sangarbe sangarbe commented Nov 5, 2018

No description provided.

@sangarbe sangarbe requested a review from almacbe November 5, 2018 14:47
.gitignore Outdated
@@ -3,3 +3,5 @@ bin
composer.phar
composer.lock
phpunit.xml
.idea/
Copy link
Member

Choose a reason for hiding this comment

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

this has to be part of your global ignore file. http://egorsmirnov.me/2015/05/04/global-gitignore-file.html

Copy link
Member Author

Choose a reason for hiding this comment

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

You're right.

</php>

<listeners>
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener">
Copy link
Member

Choose a reason for hiding this comment

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

do you really need it?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is mandatory for the ClockMock to work, i haven't tested it but it's said in the sf docs. However, i'm gonna check it and i'll tell you the results.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, this is needed. We need to configure de namespaces for the ClockMock, without that it does not work properly.

phpunit.xml

# Editors
.idea/*
Copy link
Member

Choose a reason for hiding this comment

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

same than before

</filter>

<php>
<env name="GESTPAY_SHOP_LOGIN" value="GESPAYXXXX"/>
Copy link
Member

Choose a reason for hiding this comment

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

have you added the keys to travis?

Copy link
Member Author

Choose a reason for hiding this comment

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

done!

@@ -72,7 +72,7 @@ public function executeAction()
return new Response(
$this
->templatingEngine
->render('RedsysBundle:Redsys:process.html.twig', [
->render('GestpayBundle:Redsys:process.html.twig', [
Copy link
Member

Choose a reason for hiding this comment

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

I think the refactor command does something wrong here :-P

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmmm yeah it seems so, I was not aware of this. I'll change it and pass the whole test suite

@@ -18,7 +18,7 @@
use PaymentSuite\PaymentCoreBundle\PaymentMethodInterface;

/**
* RedsysMethod class.
* GestPayMethod class.
Copy link
Member

Choose a reason for hiding this comment

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

Same here

@@ -38,7 +38,7 @@ class RedsysManager
/**
* @var RedsysMethodFactory
*
* RedsysMethod factory
* GestPayMethod factory
Copy link
Member

Choose a reason for hiding this comment

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

Same here

@@ -67,7 +67,7 @@ class RedsysManager
* Construct method for redsys manager.
*
* @param RedsysFormTypeBuilder $redsysFormTypeBuilder Form Type Builder
* @param RedsysMethodFactory $redsysMethodFactory RedsysMethod factory
* @param RedsysMethodFactory $redsysMethodFactory GestPayMethod factory
Copy link
Member

Choose a reason for hiding this comment

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

Same here

@sangarbe sangarbe merged commit 4d141c7 into master Nov 6, 2018
@sangarbe sangarbe deleted the feature/gestpay branch November 6, 2018 09:32
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.

None yet

2 participants