Skip to content

Commit

Permalink
fix(whitespace): Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mpiercy827 committed Nov 17, 2017
1 parent dfe76d0 commit f53a9ad
Show file tree
Hide file tree
Showing 10 changed files with 231 additions and 232 deletions.
16 changes: 8 additions & 8 deletions tests/Lob/Tests/Resource/AddressesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ protected function setUp()
{
$this->lob = new Lob(LOB_TEST_API_KEY);
$this->addressParams = array(
'name' => 'Larry Lobster',
'address_line1' => '185 Berry St',
'address_line2' => 'Ste 6100',
'address_city' => 'San Francisco',
'address_state' => 'CA',
'address_country' => 'US',
'address_zip' => '94107',
'email' => 'larry@lob.com'
'name' => 'Larry Lobster',
'address_line1' => '185 Berry St',
'address_line2' => 'Ste 6100',
'address_city' => 'San Francisco',
'address_state' => 'CA',
'address_country' => 'US',
'address_zip' => '94107',
'email' => 'larry@lob.com'
);
}

Expand Down
84 changes: 42 additions & 42 deletions tests/Lob/Tests/Resource/AreasTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,47 +5,47 @@

class AreasTest extends TestCase
{
protected function setUp()
{
$this->lob = new Lob(LOB_TEST_API_KEY);
$this->areaParams = array(
'description' => 'Demo Area',
'front' => 'https://s3-us-west-2.amazonaws.com/lob-assets/areafront.pdf',
'back' => 'https://s3-us-west-2.amazonaws.com/lob-assets/areaback.pdf',
'routes' => '94158-C001',
'target_type' => 'all',
);
}

public function testCreate()
{
$area = $this->lob->areas()->create($this->areaParams);

$this->assertTrue(is_array($area));
$this->assertTrue(array_key_exists('id', $area));
}

public function testGet()
{
$id = $this->lob->areas()->create($this->areaParams)['id'];
$area = $this->lob->areas()->get($id);

$this->assertTrue(is_array($area));
$this->assertTrue($area['id'] === $id);
}

public function testAll()
{
$areas = $this->lob->areas()->all();
$this->assertTrue(is_array($areas));
}

/**
* @expectedException BadMethodCallException
*/
public function testDeleteFail()
{
$this->lob->areas()->delete('1');
}
protected function setUp()
{
$this->lob = new Lob(LOB_TEST_API_KEY);
$this->areaParams = array(
'description' => 'Demo Area',
'front' => 'https://s3-us-west-2.amazonaws.com/lob-assets/areafront.pdf',
'back' => 'https://s3-us-west-2.amazonaws.com/lob-assets/areaback.pdf',
'routes' => '94158-C001',
'target_type' => 'all',
);
}

public function testCreate()
{
$area = $this->lob->areas()->create($this->areaParams);

$this->assertTrue(is_array($area));
$this->assertTrue(array_key_exists('id', $area));
}

public function testGet()
{
$id = $this->lob->areas()->create($this->areaParams)['id'];
$area = $this->lob->areas()->get($id);

$this->assertTrue(is_array($area));
$this->assertTrue($area['id'] === $id);
}

public function testAll()
{
$areas = $this->lob->areas()->all();
$this->assertTrue(is_array($areas));
}

/**
* @expectedException BadMethodCallException
*/
public function testDeleteFail()
{
$this->lob->areas()->delete('1');
}

}
90 changes: 45 additions & 45 deletions tests/Lob/Tests/Resource/BankAccountsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,62 +5,62 @@

class BankAccountsTest extends TestCase
{
protected function setUp()
{
$this->lob = new Lob(LOB_TEST_API_KEY);
$this->bankData = array(
'routing_number' => 322271627,
'account_number' => 123456789,
'account_type' => 'company',
'signatory' => 'John Doe'
);
}
protected function setUp()
{
$this->lob = new Lob(LOB_TEST_API_KEY);
$this->bankData = array(
'routing_number' => 322271627,
'account_number' => 123456789,
'account_type' => 'company',
'signatory' => 'John Doe'
);
}

public function testCreate()
{
$bankAccount = $this->lob->bankAccounts()->create($this->bankData);
public function testCreate()
{
$bankAccount = $this->lob->bankAccounts()->create($this->bankData);

$this->assertTrue(is_array($bankAccount));
$this->assertTrue(array_key_exists('id', $bankAccount));
}
$this->assertTrue(is_array($bankAccount));
$this->assertTrue(array_key_exists('id', $bankAccount));
}

public function testDelete()
{
public function testDelete()
{

$id = $this->lob->bankAccounts()->create($this->bankData)['id'];
$deleted = $this->lob->bankAccounts()->delete($id);
$id = $this->lob->bankAccounts()->create($this->bankData)['id'];
$deleted = $this->lob->bankAccounts()->delete($id);

$this->assertTrue(is_array($deleted));
}
$this->assertTrue(is_array($deleted));
}

public function testGet()
{
$id = $this->lob->bankAccounts()->create($this->bankData)['id'];
$bankAccount = $this->lob->bankAccounts()->get($id);
public function testGet()
{
$id = $this->lob->bankAccounts()->create($this->bankData)['id'];
$bankAccount = $this->lob->bankAccounts()->get($id);

$this->assertTrue(is_array($bankAccount));
$this->assertTrue($bankAccount['id'] === $id);
}
$this->assertTrue(is_array($bankAccount));
$this->assertTrue($bankAccount['id'] === $id);
}

public function testAll()
{
$bankAccounts = $this->lob->bankAccounts()->all();
public function testAll()
{
$bankAccounts = $this->lob->bankAccounts()->all();

$this->assertTrue(is_array($bankAccounts));
}
$this->assertTrue(is_array($bankAccounts));
}

public function testVerify()
{
$id = $this->lob->bankAccounts()->create($this->bankData)['id'];
$bankAccount = $this->lob->bankAccounts()->get($id);
public function testVerify()
{
$id = $this->lob->bankAccounts()->create($this->bankData)['id'];
$bankAccount = $this->lob->bankAccounts()->get($id);

$this->assertTrue(is_array($bankAccount));
$this->assertTrue(array_key_exists('id', $bankAccount));
$this->assertTrue($bankAccount['verified'] == 0);
$this->assertTrue(is_array($bankAccount));
$this->assertTrue(array_key_exists('id', $bankAccount));
$this->assertTrue($bankAccount['verified'] == 0);

$verifiedAccount = $this->lob->bankAccounts()->verify($bankAccount['id'], array(23,34));
$this->assertTrue(is_array($verifiedAccount));
$this->assertTrue($verifiedAccount['verified'] == 1);
}
$verifiedAccount = $this->lob->bankAccounts()->verify($bankAccount['id'], array(23,34));
$this->assertTrue(is_array($verifiedAccount));
$this->assertTrue($verifiedAccount['verified'] == 1);
}

}
110 changes: 55 additions & 55 deletions tests/Lob/Tests/Resource/ChecksTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,69 +5,69 @@

class ChecksTest extends TestCase
{
protected function setUp()
{
$this->lob = new Lob(LOB_TEST_API_KEY);
$bankAccount = $this->lob->bankAccounts()->create(
array(
'routing_number' => 322271627,
'account_number' => 123456789,
'account_type' => 'company',
'signatory' => 'John Doe'
)
);
$this->bankAccount = $this->lob->bankAccounts()->verify($bankAccount['id'], array(23,34));
protected function setUp()
{
$this->lob = new Lob(LOB_TEST_API_KEY);
$bankAccount = $this->lob->bankAccounts()->create(
array(
'routing_number' => 322271627,
'account_number' => 123456789,
'account_type' => 'company',
'signatory' => 'John Doe'
)
);
$this->bankAccount = $this->lob->bankAccounts()->verify($bankAccount['id'], array(23,34));

$this->checkParams = array(
'description' => 'Demo Check',
'to[name]' => 'Amrit Ayalur',
'to[address_line1]' => '123 Test Street',
'to[address_city]' => 'Mountain View',
'to[address_state]' => 'CA',
'to[address_zip]' => '94041',
'to[address_country]' => 'US',
'from[name]' => 'Bryan Adams',
'from[address_line1]' => '123 Hello Ave',
'from[address_city]' => 'Providence',
'from[address_state]' => 'RI',
'from[address_zip]' => '02912',
'from[address_country]' => 'US',
'bank_account' => $this->bankAccount['id'],
'amount' => '2200',
'memo' => 'rent'
);
}
$this->checkParams = array(
'description' => 'Demo Check',
'to[name]' => 'Amrit Ayalur',
'to[address_line1]' => '123 Test Street',
'to[address_city]' => 'Mountain View',
'to[address_state]' => 'CA',
'to[address_zip]' => '94041',
'to[address_country]' => 'US',
'from[name]' => 'Bryan Adams',
'from[address_line1]' => '123 Hello Ave',
'from[address_city]' => 'Providence',
'from[address_state]' => 'RI',
'from[address_zip]' => '02912',
'from[address_country]' => 'US',
'bank_account' => $this->bankAccount['id'],
'amount' => '2200',
'memo' => 'rent'
);
}

public function testCreate()
{
$check = $this->lob->checks()->create($this->checkParams);
public function testCreate()
{
$check = $this->lob->checks()->create($this->checkParams);

$this->assertTrue(is_array($check));
$this->assertTrue(array_key_exists('id', $check));
}
$this->assertTrue(is_array($check));
$this->assertTrue(array_key_exists('id', $check));
}

public function testGet()
{
$id = $this->lob->checks()->create($this->checkParams)['id'];
$check = $this->lob->checks()->get($id);
public function testGet()
{
$id = $this->lob->checks()->create($this->checkParams)['id'];
$check = $this->lob->checks()->get($id);

$this->assertTrue(is_array($check));
$this->assertTrue($check['id'] === $id);
}
$this->assertTrue(is_array($check));
$this->assertTrue($check['id'] === $id);
}

public function testDelete()
{
$id = $this->lob->checks()->create($this->checkParams)['id'];
$deleted = $this->lob->checks()->delete($id);
public function testDelete()
{
$id = $this->lob->checks()->create($this->checkParams)['id'];
$deleted = $this->lob->checks()->delete($id);

$this->assertTrue(is_array($deleted));
}
$this->assertTrue(is_array($deleted));
}

public function testAll()
{
$checks = $this->lob->checks()->all();
public function testAll()
{
$checks = $this->lob->checks()->all();

$this->assertTrue(is_array($checks));
}
$this->assertTrue(is_array($checks));
}

}

0 comments on commit f53a9ad

Please sign in to comment.