Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
16.67% |
1 / 6 |
|
33.33% |
1 / 3 |
CRAP | |
0.00% |
0 / 1 |
| phpbb_dbal_migration_installed | |
16.67% |
1 / 6 |
|
33.33% |
1 / 3 |
8.21 | |
0.00% |
0 / 1 |
| effectively_installed | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| update_data | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |||
| test | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | /** |
| 3 | * |
| 4 | * This file is part of the phpBB Forum Software package. |
| 5 | * |
| 6 | * @copyright (c) phpBB Limited <https://www.phpbb.com> |
| 7 | * @license GNU General Public License, version 2 (GPL-2.0) |
| 8 | * |
| 9 | * For full copyright and license information, please see |
| 10 | * the docs/CREDITS.txt file. |
| 11 | * |
| 12 | */ |
| 13 | |
| 14 | class phpbb_dbal_migration_installed extends \phpbb\db\migration\migration |
| 15 | { |
| 16 | function effectively_installed() |
| 17 | { |
| 18 | return true; |
| 19 | } |
| 20 | |
| 21 | function update_data() |
| 22 | { |
| 23 | return array( |
| 24 | array('custom', array(array(&$this, 'test'))), |
| 25 | ); |
| 26 | } |
| 27 | |
| 28 | function test() |
| 29 | { |
| 30 | global $migrator_test_installed_failed; |
| 31 | |
| 32 | $migrator_test_installed_failed = true; |
| 33 | } |
| 34 | } |