-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
179 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,7 +78,7 @@ public function test_createNewCustomer() | |
static::assertEquals('Shopware', $user['firstname']); | ||
static::assertEquals('PHPUnit', $user['lastname']); | ||
|
||
static::assertNotNull(Shopware()->Container()->get('session')->offsetGet('sUserId')); | ||
static::assertNotNull(Shopware()->Container()->get('session')->get('sUserId')); | ||
} | ||
|
||
private function getUserByMail($mail = '[email protected]') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
Tests/Functional/Subscriber/Documents/Mock/HookArgsWithCorrectPaymentId.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<?php | ||
/** | ||
* (c) shopware AG <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace SwagPaymentPayPalUnified\Tests\Functional\Subscriber\Documents\Mock; | ||
|
||
class HookArgsWithCorrectPaymentId extends \Enlight_Hook_HookArgs | ||
{ | ||
/** | ||
* @var \Smarty_Data | ||
*/ | ||
private $_view; | ||
|
||
/** | ||
* @var \Enlight_Template_Manager | ||
*/ | ||
private $_template; | ||
|
||
/** | ||
* @param bool $isShopware55 | ||
*/ | ||
public function __construct($isShopware55 = false) | ||
{ | ||
if ($isShopware55) { | ||
parent::__construct(new \stdClass(), ''); | ||
} | ||
} | ||
|
||
/** | ||
* @return \Enlight_Class | ||
*/ | ||
public function getSubject() | ||
{ | ||
$subject = \Enlight_Class::Instance(\Shopware_Components_Document::class); | ||
|
||
$subject->_order = new \Shopware_Models_Document_Order(15); | ||
$view = new \Smarty_Data(); | ||
$view->assign('Order', [ | ||
'_payment' => [ | ||
'description' => 'PayPal', | ||
], | ||
]); | ||
$subject->_view = $view; | ||
$subject->_template = new \Enlight_Template_Manager(); | ||
|
||
$this->_view = $subject->_view; | ||
$this->_template = $subject->_template; | ||
|
||
return $subject; | ||
} | ||
|
||
/** | ||
* @return \Smarty_Data | ||
*/ | ||
public function getView() | ||
{ | ||
return $this->_view; | ||
} | ||
|
||
/** | ||
* @return \Enlight_Template_Manager | ||
*/ | ||
public function getTemplate() | ||
{ | ||
return $this->_template; | ||
} | ||
} |
Oops, something went wrong.