Skip to content

Commit

Permalink
requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Train committed Dec 5, 2019
1 parent 2ea4f4d commit d0be45c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 34 deletions.
2 changes: 1 addition & 1 deletion src/BankAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

class BankAccount extends BasePaymentSourceObject
{
use Operations\Delete;

}
1 change: 1 addition & 0 deletions src/BasePaymentSourceObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@

class BasePaymentSourceObject extends BaseObject
{
use Operations\Delete;
}
2 changes: 1 addition & 1 deletion src/Card.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

class Card extends BasePaymentSourceObject
{
use Operations\Delete;

}
32 changes: 0 additions & 32 deletions tests/PaymentSourceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,36 +38,4 @@ public function testAll()
$this->assertInstanceOf('Invoiced\\Collection', $metadata);
$this->assertEquals(15, $metadata->total_count);
}

public function testInvalidCardCreate()
{
$this->setExpectedException('Error');

$card = new Card(self::$invoiced);
$card->create();
}

public function testInvalidCardAll()
{
$this->setExpectedException('Error');

$card = new Card(self::$invoiced);
$card->all();
}

public function testInvalidBankAccountCreate()
{
$this->setExpectedException('Error');

$acct = new BankAccount(self::$invoiced);
$acct->create();
}

public function testInvalidBankAccountAll()
{
$this->setExpectedException('Error');

$acct = new BankAccount(self::$invoiced);
$acct->all();
}
}

0 comments on commit d0be45c

Please sign in to comment.