Skip to content

Commit 718d9f6

Browse files
Release notes
- Updated release notes - Set environment to production - Additional tests
1 parent 7de02db commit 718d9f6

File tree

3 files changed

+57
-4
lines changed

3 files changed

+57
-4
lines changed

application/configs/environment.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
* production, development, testing or staging
1111
*/
1212

13-
//$environment = 'production';
13+
$environment = 'production';
1414
$environment = 'development';
1515

1616
// Version number for current release
17-
$version_no = 'v1.08';
17+
$version_no = 'v1.09';
1818
// Release date for current release
19-
$version_release_date = '26th January 2016';
19+
$version_release_date = 'In progress';

application/modules/dlayer/views/scripts/index/index.phtml

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
<li>Minor update to the signed in page. [UI]</li>
3939
<li>Added the 'Text element` tool. [Feature]</li>
4040
<li>Element label and description are now part of the attributes table. [Database]</li>
41-
<li>General refactoring and minor fixes.</li>
41+
<li>Added form field selector. [Feature]</li>
42+
<li>Starting to build up the test suite. [Tests]</li>
4243
</ul>
4344

4445
<h3><span class="label label-default">v1.08</span> Form Builder part 2 <small class="text-muted">(26th January 2017)</small></h3>

tests/Validation/FontSizeTest.php

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<?php
2+
3+
final class Validation_FontSizeTest extends \PHPUnit_Framework_TestCase
4+
{
5+
public function testPassingString()
6+
{
7+
$validator = new \Dlayer_Validate_FontSize();
8+
$this->assertFalse($validator->isValid('two'));
9+
}
10+
11+
public function testPassingArray()
12+
{
13+
$validator = new \Dlayer_Validate_FontSize();
14+
$this->assertFalse($validator->isValid(array()));
15+
}
16+
17+
public function testPassingNull()
18+
{
19+
$validator = new \Dlayer_Validate_FontSize();
20+
$this->assertFalse($validator->isValid(null));
21+
}
22+
23+
public function testPassingInteger()
24+
{
25+
$validator = new \Dlayer_Validate_FontSize();
26+
$this->assertTrue($validator->isValid(28));
27+
}
28+
29+
public function testPassingIntegerBelowLowerLimit()
30+
{
31+
$validator = new \Dlayer_Validate_FontSize();
32+
$this->assertFalse($validator->isValid(4));
33+
}
34+
35+
public function testPassingIntegerAboveHigherLimit()
36+
{
37+
$validator = new \Dlayer_Validate_FontSize();
38+
$this->assertFalse($validator->isValid(74));
39+
}
40+
41+
public function testPassingIntegerLowerLimit()
42+
{
43+
$validator = new \Dlayer_Validate_FontSize();
44+
$this->assertTrue($validator->isValid(6));
45+
}
46+
47+
public function testPassingIntegerHigherLimit()
48+
{
49+
$validator = new \Dlayer_Validate_FontSize();
50+
$this->assertTrue($validator->isValid(72));
51+
}
52+
}

0 commit comments

Comments
 (0)