From 33da7f5c7958bbe56d37bc10cb9c81c32238f33d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Davaillaud?= Date: Wed, 6 Jun 2018 19:13:12 +0200 Subject: [PATCH] Add test on the boolean property type --- .travis.yml | 8 ++++---- tests/tests/Features/property-info.feature | 5 +++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3f46031..e4fbd0b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,11 +30,11 @@ services: postgresql before_install: - psql -c 'CREATE DATABASE pomm_test' -U postgres -h 127.0.0.1 postgres - - psql -c 'CREATE TABLE config (name character varying(25) PRIMARY KEY, value character varying(25))' -U postgres -h 127.0.0.1 pomm_test - - psql -c "INSERT INTO config VALUES ('test', 'value')" -U postgres -h 127.0.0.1 pomm_test + - 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 + - psql -c "INSERT INTO config VALUES ('test', 'value', true)" -U postgres -h 127.0.0.1 pomm_test - psql -c 'CREATE DATABASE pomm_test_2' -U postgres -h 127.0.0.1 postgres - - 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 - - psql -c "INSERT INTO config VALUES ('test', 'value_db2')" -U postgres -h 127.0.0.1 pomm_test_2 + - 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 + - psql -c "INSERT INTO config VALUES ('test', 'value_db2', false)" -U postgres -h 127.0.0.1 pomm_test_2 - php -S localhost:8080 -t tests/web &> /dev/null & - ln -fs parameters.yml.dist tests/app/config/parameters.yml diff --git a/tests/tests/Features/property-info.feature b/tests/tests/Features/property-info.feature index 6bca880..acc544d 100644 --- a/tests/tests/Features/property-info.feature +++ b/tests/tests/Features/property-info.feature @@ -9,3 +9,8 @@ Feature: Entity Param Converter When I am on "/app_dev.php/property/name" Then the response status code should be 200 Then I should see "string" + + Scenario: property type boolean + When I am on "/app_dev.php/property/global" + Then the response status code should be 200 + Then I should see "bool" \ No newline at end of file