summaryrefslogtreecommitdiffhomepage
path: root/test/test_php_application.py
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2021-12-10 15:34:52 +0000
committerAndrei Zeliankou <zelenkov@nginx.com>2021-12-10 15:34:52 +0000
commitad843df965f47b5d209603de49d0b3b16938149d (patch)
tree33cbb71cb97f9bd6522bfbdc39478c3160f5d01a /test/test_php_application.py
parenta6a884ebdbad54e2443e5281d53111c92f3ec837 (diff)
downloadunit-ad843df965f47b5d209603de49d0b3b16938149d.tar.gz
unit-ad843df965f47b5d209603de49d0b3b16938149d.tar.bz2
Tests: fixed path to the "php.ini" file.
Diffstat (limited to 'test/test_php_application.py')
-rw-r--r--test/test_php_application.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/test/test_php_application.py b/test/test_php_application.py
index d9c16a6d..194caa9f 100644
--- a/test/test_php_application.py
+++ b/test/test_php_application.py
@@ -294,20 +294,28 @@ class TestPHPApplication(TestApplicationPHP):
self.load('ini_precision')
assert 'success' in self.conf(
- {"file": "php.ini", "admin": {"precision": "5"}},
+ {"file": "ini/php.ini", "admin": {"precision": "5"}},
'applications/ini_precision/options',
)
+ assert (
+ self.get()['headers']['X-File']
+ == option.test_dir + '/php/ini_precision/ini/php.ini'
+ ), 'ini file'
assert self.get()['headers']['X-Precision'] == '5', 'ini value admin'
def test_php_application_ini_user(self):
self.load('ini_precision')
assert 'success' in self.conf(
- {"file": "php.ini", "user": {"precision": "5"}},
+ {"file": "ini/php.ini", "user": {"precision": "5"}},
'applications/ini_precision/options',
)
+ assert (
+ self.get()['headers']['X-File']
+ == option.test_dir + '/php/ini_precision/ini/php.ini'
+ ), 'ini file'
assert self.get()['headers']['X-Precision'] == '5', 'ini value user'
def test_php_application_ini_user_2(self):