Skip to content

Commit

Permalink
PaymentControlTest: do not access to private property directly
Browse files Browse the repository at this point in the history
  • Loading branch information
ldrahnik committed Aug 29, 2016
1 parent 80c3a2d commit 01dd13f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/PayPal/UI/PaymentControlTest.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ class PaymentControlTest extends TestCase {

public function testSetup() {
Assert::same($this->control->getTemplateFilePath(), $this->control->getDefaultTemplateFilePath());
$this->control->setTemplateFilePath('/foo/path.latte');
Assert::same($this->control->getTemplateFilePath(), $this->control->templateFilePath);
$templateFilePath = '/foo/path.latte';
$this->control->setTemplateFilePath($templateFilePath);
Assert::same($this->control->getTemplateFilePath(), $templateFilePath);
}

/**
Expand Down

0 comments on commit 01dd13f

Please sign in to comment.