Joseph Warner
8e575487ff
[ticket/11618] Replace glob() with scandir() and string matching
...
Removes glob from template tests as glob() does not work on all
systems according to PHP documentation as has been noticed by users.
PHPBB3-11618
2013-06-26 19:51:52 -04:00
Andreas Fischer
86234ea533
Merge branch 'develop-olympus' into develop
...
* develop-olympus:
2013-06-27 01:22:01 +02:00
Andreas Fischer
e0c572d1d8
Merge remote-tracking branch 'asperous/ticket/11615/creation_test' into develop-olympus
...
* asperous/ticket/11615/creation_test:
[ticket/11615] Fix typo in creation_test
[ticket/11615] Remove magic number in creation_test
[ticket/11615] Rename class in file to match
[ticket/11615] Rename init_test to creation_test for clarity
2013-06-27 01:21:28 +02:00
Andreas Fischer
d0f0704515
Merge branch 'develop-olympus' into develop
...
* develop-olympus:
[ticket/11615] Fix typo in creation_test
[ticket/11615] Remove magic number in creation_test
[ticket/11615] Rename class in file to match
[ticket/11615] Rename init_test to creation_test for clarity
2013-06-27 01:12:34 +02:00
Andreas Fischer
95730c1ff1
Merge remote-tracking branch 'asperous/ticket/11615/creation_test' into develop-olympus
...
* asperous/ticket/11615/creation_test:
[ticket/11615] Fix typo in creation_test
[ticket/11615] Remove magic number in creation_test
[ticket/11615] Rename class in file to match
[ticket/11615] Rename init_test to creation_test for clarity
2013-06-27 01:09:52 +02:00
Dhruv
fe4bfd02a3
[ticket/10838] Updated RUNNING_TESTS.md
...
PHPBB3-10838
2013-06-27 01:52:22 +05:30
Dhruv
bd9ece7ab6
[ticket/9341] Add tests for checking Next and Previous template vars
...
PHPBB3-9341
2013-06-27 00:59:37 +05:30
Dhruv
1f989c6be7
[ticket/9341] Move create_topic and post into functional test case
...
create_topic and create_post are moved into functional test case
so that they can be used by other tests as well
PHPBB3-9341
2013-06-27 00:57:34 +05:30
Andy Chase
7ba81a293f
[ticket/11615] Fix typo in creation_test
...
PHPBB3-11615
2013-06-26 11:49:37 -07:00
Andy Chase
4c432fecc7
[ticket/11615] Remove magic number in creation_test
...
Removing this magic number to its own variable
with clean multiplication makes it clear
what the number represents.
PHPBB3-11615
2013-06-26 11:49:36 -07:00
Andy Chase
c29cca1a75
[ticket/11615] Rename class in file to match
...
PHPBB3-11615
2013-06-26 11:49:35 -07:00
Andy Chase
a105a6d7a7
[ticket/11615] Rename init_test to creation_test for clarity
...
PHPBB3-11615
2013-06-26 11:49:34 -07:00
Nathaniel Guse
09ed0dd7bc
[feature/twig] Replace BEGIN with Twig for using Lexer
...
No longer using the begin tokenparser/node as it did not allow proper
handling of <!-- BEGIN !foo, <!-- BEGIN foo(0,2). Now the lexer will
use regular expressions to handle that correctly and replace it with Twig's
for token
Also fixing <!-- IF .foo as I discovered it evaluates to if sizeof(foo)
PHPBB3-11598
2013-06-26 12:30:59 -05:00
Nathaniel Guse
6d709525c3
[feature/twig] Set S_ROW_NUM in context also (previously was a hack in filter)
...
PHPBB3-11598
2013-06-26 12:27:32 -05:00
Joseph Warner
19bbf7b7de
[feature/auth-refactor] Fix two session tests broken by changes
...
PHPBB3-9734
2013-06-26 11:33:17 -04:00
Nathaniel Guse
15e4b33495
[feature/twig] Fix alter_block_array to correctly set S_ROW_COUNT
...
PHPBB3-11598
2013-06-26 09:09:11 -05:00
Joseph Warner
4afdd650cd
[feature/auth-refactor] Removed no longer used variable
...
PHPBB3-9734
2013-06-26 00:02:20 -04:00
Joseph Warner
59929669f5
[feature/auth-refactor] Fix errors in acp_board
...
Fixes errors introduced by the last several commits.
PHPBB3-9734
2013-06-25 22:27:16 -04:00
Joseph Warner
08614e2b85
[feature/auth-refactor] Fix indentation on acp_board
...
PHPBB3-9734
2013-06-25 22:26:03 -04:00
Joseph Warner
3c394aee62
[feature/auth-refactor] Refactor auth in acp_board
...
Changes the acp_board code to directly call the auth providers out
of the $auth_providers variable that is populated by the
phpbb_container.
PHPBB3-9734
2013-06-25 22:21:38 -04:00
Joseph Warner
b78b6711c8
[feature/auth-refactor] Don't truncate name then reattach same thing
...
PHPBB3-9734
2013-06-25 22:15:21 -04:00
Joseph Warner
09372d765d
[feature/auth-refactor] Remove old auth plugins
...
PHPBB3-9734
2013-06-25 22:01:18 -04:00
Joseph Warner
4f3f0a8791
[feature/auth-refactor] Remove references to old auth plugins
...
Removes what is hopefully the last references to the old auth
plugins in the code base.
PHPBB3-9734
2013-06-25 21:59:19 -04:00
Nathaniel Guse
040186418a
[feature/twig] Forgot to set up $config in node/php.php
...
PHPBB3-11598
2013-06-25 20:52:04 -05:00
Nathaniel Guse
6c771a38de
[feature/twig] Going back to Twig's handling of cache file names for now
...
My method was not working correctly, will work on it more later.
PHPBB3-11598
2013-06-25 19:24:32 -05:00
Nathaniel Guse
7a9aec5fda
[feature/twig] No longer using the phpbb_template_locator
...
This functionality is handled by the Twig Filesystem Loader
PHPBB3-11598
2013-06-25 19:23:42 -05:00
Nathaniel Guse
25f0ee9fb6
[feature/twig] Fixing template events test (and behavior)
...
According to the test, template event behavior was never correct.
Only ONE template event file is supposed to be included from EACH
extension. As it was before, EVERY matching template event file from
each extension was included (this was how it was designed).
E.g.
Event call in prosilver "foo"
Extension has template "foo" in prosilver AND all
foo from all would be included, then foo from prosilver would be included
This was clearly not designed correctly as only the most specific event
file from each extension should be loaded, otherwise events could only
ever be put in a single style tree (either only all, or only prosilver
and subsilver2 and any style that inherits from neither of those).
Otherwise the events would be duplicated on output (which is clearly not
desirable).
The Twig behavior already was correct as I designed it, so only the one
most specific template event file found would be included from each
extension. The tests had to be updated for the correct expected output.
PHPBB3-11598
2013-06-25 19:22:23 -05:00
Nathaniel Guse
3766b736da
[feature/twig] Don't require phpbb_config, some tests pass null
...
PHPBB3-11598
2013-06-25 18:06:45 -05:00
Nathaniel Guse
1c8c03c4db
[feature/twig] INCLUDEPHP token abs paths & fix test
...
PHPBB3-11598
2013-06-25 16:51:50 -05:00
Nathaniel Guse
8bccba1a2f
[feature/twig] INCLUDEPHP token, replace variable usage with $context
...
I could find no better way to do this...
PHPBB3-11598
2013-06-25 16:27:58 -05:00
Joseph Warner
5f3ed197e7
[feature/auth-refactor] Fix auth tests to use mock objects correctly
...
PHPBB3-9734
2013-06-25 16:26:20 -04:00
Nathaniel Guse
e227f05e9a
[feature/twig] INCLUDEPHP token support
...
PHPBB3-11598
2013-06-25 15:02:55 -05:00
Nathaniel Guse
99b776a4e5
[feature/twig] Add a comment to tpl output if PHP used, but disabled
...
PHPBB3-11598
2013-06-25 14:59:41 -05:00
Nathaniel Guse
68225d9f29
[feature/twig] Pass parameters required to twig env via constructor
...
Instead of creating set functions
PHPBB3-11598
2013-06-25 14:58:55 -05:00
Nathaniel Guse
ea785efb30
[feature/twig] PHP token support
...
PHPBB3-11598
2013-06-25 14:22:40 -05:00
Joseph Warner
5444e5b683
[feature/auth-refactor] Test validate_session on provider_apache
...
Provides a test for the validate_session() method of
provider_apache.
PHPBB3-9734
2013-06-25 14:37:22 -04:00
Joseph Warner
9e04328545
[feature/auth-refactor] Test autologin() on provider_apache
...
Provides a test for the autologin() method of provider_apache
that assumes the user already exists in the database.
PHPBB3-9734
2013-06-25 14:25:45 -04:00
Joseph Warner
307dd9777b
[feature/auth-refactor] Test login() for provider_apache
...
Provides a test for the login() method for provider_apache.
Appears to be failing due to an issue with the mock phpBB request
class.
PHPBB3-9734
2013-06-25 14:13:36 -04:00
Joseph Warner
e5de05d8db
[feature/auth-refactor] Test for init on provider_apache
...
Provides a test for the init() method of provider_apache.
Appears to be failing due to an error with the mock request class.
PHPBB3-9734
2013-06-25 14:05:40 -04:00
Joseph Warner
91c80dfc8e
[feature/auth-refactor] Skeleton of provider_apache_test
...
Creates a skeleton of the tests for provider_apache.
PHPBB3-9734
2013-06-25 13:38:01 -04:00
Joseph Warner
8e1a503f44
[feature/auth-refactor] Finish provider_db unit test for login
...
Finishes the provider_db unit test for login. The test currently
passes.
PHPBB3-9734
2013-06-25 13:23:57 -04:00
Nathaniel Guse
fe61527c52
[feature/twig] Remove duplicate test calls
...
PHPBB3-11598
2013-06-24 23:29:22 -05:00
Nathaniel Guse
dabc0edea2
[feature/twig] Delete template_spacing_test.php
...
No longer needed
PHPBB3-11598
2013-06-24 22:50:09 -05:00
Nathaniel Guse
1d6a51f51a
[feature/twig] Delete template_locate_test.php
...
No longer needed
PHPBB3-11598
2013-06-24 22:44:57 -05:00
Nathaniel Guse
92391d2f4f
[feature/twig] Correct template_inheritance_test.php
...
PHPBB3-11598
2013-06-24 22:44:12 -05:00
Nathaniel Guse
8bda356dab
[feature/twig] Correct includejs test
...
PHPBB3-11598
2013-06-24 22:40:17 -05:00
Nathaniel Guse
3ca99f8122
[feature/twig] Append assets_version to includejs tag
...
Some fixes for main template parser
PHPBB3-11598
2013-06-24 22:37:58 -05:00
Nathaniel Guse
814d57d201
[feature/twig] Delete template_compile_test.php
...
No longer necessary
PHPBB3-11598
2013-06-24 21:58:09 -05:00
Nathaniel Guse
d986e124fe
[feature/twig] Delete renderer_eval_test.php
...
No longer necessary
PHPBB3-11598
2013-06-24 21:57:01 -05:00
Nathaniel Guse
881bc60fbc
[feature/twig] Delete invalid constructs template test
...
Invalid tags is no longer a valid test (invalid tags are ignored)
Twig contains tests for loading files, so we should not need to test this
PHPBB3-11598
2013-06-24 21:55:45 -05:00