BitBagCommerce /
SyliusQuadPayPlugin
| 1 | <?php |
||||||
| 2 | |||||||
| 3 | /* |
||||||
| 4 | * This file has been created by developers from BitBag. |
||||||
| 5 | * Feel free to contact us once you face any issues or want to start |
||||||
| 6 | * another great project. |
||||||
| 7 | * You can find more information about us on https://bitbag.shop and write us |
||||||
| 8 | * an email on [email protected]. |
||||||
| 9 | */ |
||||||
| 10 | |||||||
| 11 | declare(strict_types=1); |
||||||
| 12 | |||||||
| 13 | namespace spec\BitBag\SyliusQuadPayPlugin; |
||||||
| 14 | |||||||
| 15 | use BitBag\SyliusQuadPayPlugin\QuadPayGatewayFactory; |
||||||
| 16 | use Payum\Core\GatewayFactory; |
||||||
| 17 | use PhpSpec\ObjectBehavior; |
||||||
| 18 | |||||||
| 19 | final class QuadPayGatewayFactorySpec extends ObjectBehavior |
||||||
| 20 | { |
||||||
| 21 | function it_is_initializable(): void |
||||||
|
0 ignored issues
–
show
|
|||||||
| 22 | { |
||||||
| 23 | $this->shouldHaveType(QuadPayGatewayFactory::class); |
||||||
| 24 | $this->shouldHaveType(GatewayFactory::class); |
||||||
| 25 | } |
||||||
| 26 | |||||||
| 27 | function it_populates_config_run(): void |
||||||
| 28 | { |
||||||
| 29 | $this->createConfig([]); |
||||||
|
0 ignored issues
–
show
The method
createConfig() does not exist on spec\BitBag\SyliusQuadPa...adPayGatewayFactorySpec. Since you implemented __call, consider adding a @method annotation.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||||
| 30 | } |
||||||
| 31 | } |
||||||
| 32 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.