Skip to content

Commit 33da7f5

Browse files
author
Raphaël Davaillaud
committed
Add test on the boolean property type
1 parent 6cff486 commit 33da7f5

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ services: postgresql
3030

3131
before_install:
3232
- psql -c 'CREATE DATABASE pomm_test' -U postgres -h 127.0.0.1 postgres
33-
- psql -c 'CREATE TABLE config (name character varying(25) PRIMARY KEY, value character varying(25))' -U postgres -h 127.0.0.1 pomm_test
34-
- psql -c "INSERT INTO config VALUES ('test', 'value')" -U postgres -h 127.0.0.1 pomm_test
33+
- psql -c 'CREATE TABLE config (name character varying(25) PRIMARY KEY, value character varying(25), global boolean)' -U postgres -h 127.0.0.1 pomm_test
34+
- psql -c "INSERT INTO config VALUES ('test', 'value', true)" -U postgres -h 127.0.0.1 pomm_test
3535
- psql -c 'CREATE DATABASE pomm_test_2' -U postgres -h 127.0.0.1 postgres
36-
- psql -c 'CREATE TABLE config (name character varying(25) PRIMARY KEY, value character varying(25))' -U postgres -h 127.0.0.1 pomm_test_2
37-
- psql -c "INSERT INTO config VALUES ('test', 'value_db2')" -U postgres -h 127.0.0.1 pomm_test_2
36+
- psql -c 'CREATE TABLE config (name character varying(25) PRIMARY KEY, value character varying(25), global boolean)' -U postgres -h 127.0.0.1 pomm_test_2
37+
- psql -c "INSERT INTO config VALUES ('test', 'value_db2', false)" -U postgres -h 127.0.0.1 pomm_test_2
3838

3939
- php -S localhost:8080 -t tests/web &> /dev/null &
4040
- ln -fs parameters.yml.dist tests/app/config/parameters.yml

tests/tests/Features/property-info.feature

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,8 @@ Feature: Entity Param Converter
99
When I am on "/app_dev.php/property/name"
1010
Then the response status code should be 200
1111
Then I should see "string"
12+
13+
Scenario: property type boolean
14+
When I am on "/app_dev.php/property/global"
15+
Then the response status code should be 200
16+
Then I should see "bool"

0 commit comments

Comments
 (0)