[feature/merging-style-components] Adjusting unit tests

Adjusting unit tests for new styles table structure

PHPBB3-10632
This commit is contained in:
Vjacheslav Trushkin 2012-02-18 02:01:35 +02:00
parent f32cc3ae8f
commit ce215658eb
2 changed files with 28 additions and 14 deletions

View file

@ -5,31 +5,39 @@
<column>style_name</column>
<column>style_copyright</column>
<column>style_active</column>
<column>template_id</column>
<column>theme_id</column>
<column>style_path</column>
<column>bbcode_bitfield</column>
<column>style_parent_id</column>
<column>style_parent_tree</column>
<row>
<value>1</value>
<value>prosilver</value>
<value>&amp;copy; phpBB Group</value>
<value>1</value>
<value>1</value>
<value>1</value>
<value>prosilver</value>
<value>kNg=</value>
<value>0</value>
<value></value>
</row>
<row>
<value>2</value>
<value>prosilver2</value>
<value>&amp;copy; phpBB Group</value>
<value>0</value>
<value>2</value>
<value>2</value>
<value>prosilver2</value>
<value>kNg=</value>
<value>0</value>
<value></value>
</row>
<row>
<value>3</value>
<value>Prosilver1</value>
<value>&amp;copy; phpBB Group</value>
<value>0</value>
<value>3</value>
<value>3</value>
<value>prosilver1</value>
<value>kNg=</value>
<value>1</value>
<value>prosilver</value>
</row>
</table>
</dataset>

View file

@ -33,24 +33,30 @@ class phpbb_dbal_order_lower_test extends phpbb_database_test_case
'style_name' => 'prosilver',
'style_copyright' => '&copy; phpBB Group',
'style_active' => 1,
'template_id' => 1,
'theme_id' => 1,
'style_path' => 'prosilver',
'bbcode_bitfield' => 'kNg=',
'style_parent_id' => 0,
'style_parent_tree' => '',
),
array(
'style_id' => 3,
'style_name' => 'Prosilver1',
'style_copyright' => '&copy; phpBB Group',
'style_active' => 0,
'template_id' => 3,
'theme_id' => 3,
'style_path' => 'prosilver1',
'bbcode_bitfield' => 'kNg=',
'style_parent_id' => 1,
'style_parent_tree' => 'prosilver',
),
array(
'style_id' => 2,
'style_name' => 'prosilver2',
'style_copyright' => '&copy; phpBB Group',
'style_active' => 0,
'template_id' => 2,
'theme_id' => 2,
'style_path' => 'prosilver2',
'bbcode_bitfield' => 'kNg=',
'style_parent_id' => 0,
'style_parent_tree' => '',
)
),
$db->sql_fetchrowset($result)