| @@ 7-21 (lines=15) @@ | ||
| 4 | ||
| 5 | use Magium\Assertions\AbstractAssertion; |
|
| 6 | ||
| 7 | class SagePay extends AbstractAssertion |
|
| 8 | { |
|
| 9 | ||
| 10 | public function assert() |
|
| 11 | { |
|
| 12 | $this->getTestCase()->assertElementExists('sagepaydirectpro_cc_owner'); |
|
| 13 | $this->getTestCase()->assertElementExists('sagepaydirectpro_cc_type'); |
|
| 14 | $this->getTestCase()->assertEquals('select', strtolower($this->webDriver->byId('sagepaydirectpro_cc_type')->getTagName())); |
|
| 15 | $this->getTestCase()->assertElementExists('sagepaydirectpro_cc_number'); |
|
| 16 | $this->getTestCase()->assertElementExists('sagepaydirectpro_expiration'); |
|
| 17 | $this->getTestCase()->assertElementExists('sagepaydirectpro_expiration_yr'); |
|
| 18 | $this->getTestCase()->assertElementExists('sagepaydirectpro_cc_cid'); |
|
| 19 | } |
|
| 20 | ||
| 21 | } |
|
| @@ 7-20 (lines=14) @@ | ||
| 4 | ||
| 5 | use Magium\Assertions\AbstractAssertion; |
|
| 6 | ||
| 7 | class SavedCC extends AbstractAssertion |
|
| 8 | { |
|
| 9 | ||
| 10 | public function assert() |
|
| 11 | { |
|
| 12 | $this->getTestCase()->assertElementExists('ccsave_cc_owner'); |
|
| 13 | $this->getTestCase()->assertElementExists('ccsave_cc_type'); |
|
| 14 | $this->getTestCase()->assertEquals('select', strtolower($this->webDriver->byId('ccsave_cc_type')->getTagName())); |
|
| 15 | $this->getTestCase()->assertElementExists('ccsave_cc_number'); |
|
| 16 | $this->getTestCase()->assertElementExists('ccsave_expiration'); |
|
| 17 | $this->getTestCase()->assertElementExists('ccsave_expiration_yr'); |
|
| 18 | } |
|
| 19 | ||
| 20 | } |
|