Skip to content

Commit

Permalink
Use StringTemplate constructor in test cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jan 15, 2014
1 parent 3489cd2 commit ff9de4e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
3 changes: 1 addition & 2 deletions tests/TestCase/View/Input/CheckboxTest.php
Expand Up @@ -33,8 +33,7 @@ public function setUp() {
$templates = [
'checkbox' => '<input type="checkbox" name="{{name}}" value="{{value}}"{{attrs}}>',
];
$this->templates = new StringTemplate();
$this->templates->add($templates);
$this->templates = new StringTemplate($templates);
}

/**
Expand Down
3 changes: 1 addition & 2 deletions tests/TestCase/View/Input/MultiCheckboxTest.php
Expand Up @@ -35,8 +35,7 @@ public function setUp() {
'label' => '<label{{attrs}}>{{text}}</label>',
'checkboxContainer' => '<div class="checkbox">{{input}}{{label}}</div>',
];
$this->templates = new StringTemplate();
$this->templates->add($templates);
$this->templates = new StringTemplate($templates);
}

/**
Expand Down
3 changes: 1 addition & 2 deletions tests/TestCase/View/Input/RadioTest.php
Expand Up @@ -36,8 +36,7 @@ public function setUp() {
'label' => '<label{{attrs}}>{{text}}</label>',
'radioContainer' => '{{input}}{{label}}',
];
$this->templates = new StringTemplate();
$this->templates->add($templates);
$this->templates = new StringTemplate($templates);
}

/**
Expand Down
3 changes: 1 addition & 2 deletions tests/TestCase/View/Input/SelectBoxTest.php
Expand Up @@ -36,8 +36,7 @@ public function setUp() {
'option' => '<option value="{{value}}"{{attrs}}>{{text}}</option>',
'optgroup' => '<optgroup label="{{label}}"{{attrs}}>{{content}}</optgroup>',
];
$this->templates = new StringTemplate();
$this->templates->add($templates);
$this->templates = new StringTemplate($templates);
}

/**
Expand Down
3 changes: 1 addition & 2 deletions tests/TestCase/View/Input/TextTest.php
Expand Up @@ -28,8 +28,7 @@ public function setUp() {
$templates = [
'input' => '<input type="{{type}}" name="{{name}}"{{attrs}}>',
];
$this->templates = new StringTemplate();
$this->templates->add($templates);
$this->templates = new StringTemplate($templates);
}

/**
Expand Down

0 comments on commit ff9de4e

Please sign in to comment.