Actions
Backport(バックポート) #3434
closedpc_backendの機能テスト designActionsTest.php の実行に失敗する
Start date:
2013-10-07
Due date:
% Done:
100%
Estimated time:
Description
Overview (現象)¶
source:test/functional/pc_backend/designActionsTest.php を実行すると下記のエラーが発生し異常終了する。
PHP Fatal error: Class 'ProjectConfiguration' not found in /home/upsilon/git/openpne3/master/test/bootstrap/database.php on line 10 Fatal error: Class 'ProjectConfiguration' not found in /home/upsilon/git/openpne3/master/test/bootstrap/database.php on line 10
Causes (原因)¶
designActionsTest.php 内の記述は次のようになっている。
<?php
include(dirname(__FILE__).'/../../bootstrap/database.php');
include(dirname(__FILE__).'/../../bootstrap/functional.php');
$browser = new opTestFunctional(new opBrowser(), new lime_test(null, new lime_output_color()));
functional.php よりも先に database.php をロードしたために sfAutoload が初期化される前に ProjectConfiguration クラスを呼び出そうとしてエラーとなっている。また、functional.php 内で database.php がロードされるためそもそも database.php のロードは不要である。
Way to fix (修正内容)¶
designActionsTest.php から database.php を include する処理を削除する
Updated by Mutsumi Imamura over 11 years ago
- Tracker changed from Bug(バグ) to Backport(バックポート)
Updated by Youichi Kimura over 11 years ago
- Status changed from New(新規) to Pending Review(レビュー待ち)
- % Done changed from 0 to 50
更新履歴 a976b3c723e2f574989e2f296edf498baa3b4239 で適用されました。
Updated by Shinichi Urabe over 11 years ago
- Status changed from Pending Review(レビュー待ち) to Pending Testing(テスト待ち)
- % Done changed from 50 to 70
レビューOKです
Updated by Mutsumi Imamura over 11 years ago
- Status changed from Pending Testing(テスト待ち) to Fixed(完了)
- % Done changed from 70 to 100
./symfony test:all を実行し異常終了しないことを確認しました。
Actions