-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove obsolete test case and add new test cases for payment methods.
Signed-off-by: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com>
- Loading branch information
Showing
49 changed files
with
3,544 additions
and
159 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
namespace Igniter\PayRegister\Database\Factories; | ||
|
||
use Igniter\Flame\Database\Factories\Factory; | ||
|
||
class PaymentLogFactory extends Factory | ||
{ | ||
protected $model = \Igniter\PayRegister\Models\PaymentLog::class; | ||
|
||
public function definition(): array | ||
{ | ||
return [ | ||
'message' => $this->faker->sentence, | ||
'payment_code' => $this->faker->word, | ||
'payment_name' => $this->faker->name, | ||
'is_success' => true, | ||
'request' => [], | ||
'response' => [], | ||
'is_refundable' => false, | ||
]; | ||
} | ||
} |
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,23 @@ | ||
<?php | ||
|
||
namespace Igniter\PayRegister\Database\Factories; | ||
|
||
use Igniter\PayRegister\Models\PaymentProfile; | ||
use Illuminate\Database\Eloquent\Factories\Factory; | ||
|
||
class PaymentProfileFactory extends Factory | ||
{ | ||
protected $model = PaymentProfile::class; | ||
|
||
public function definition(): array | ||
{ | ||
return [ | ||
'customer_id' => 1, | ||
'payment_id' => 1, | ||
'card_brand' => 1, | ||
'card_last4' => 1, | ||
'profile_data' => [], | ||
'is_primary' => false, | ||
]; | ||
} | ||
} |
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
Oops, something went wrong.