Project

General

Profile

Actions

Backport(バックポート) #3434

closed

pc_backendの機能テスト designActionsTest.php の実行に失敗する

Added by Mutsumi Imamura over 11 years ago. Updated over 11 years ago.

Status:
Fixed(完了)
Priority:
Normal(通常)
Target version:
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 する処理を削除する


Related issues 1 (0 open1 closed)

Related to OpenPNE 3 - Bug(バグ) #3425: pc_backendの機能テスト designActionsTest.php の実行に失敗するWon't fix(対応せず)Youichi Kimura2013-10-07

Actions
Actions #1

Updated by Mutsumi Imamura over 11 years ago

  • Tracker changed from Bug(バグ) to Backport(バックポート)
Actions #2

Updated by Youichi Kimura over 11 years ago

  • Status changed from New(新規) to Pending Review(レビュー待ち)
  • % Done changed from 0 to 50

更新履歴 a976b3c723e2f574989e2f296edf498baa3b4239 で適用されました。

Actions #3

Updated by Shinichi Urabe over 11 years ago

  • Status changed from Pending Review(レビュー待ち) to Pending Testing(テスト待ち)
  • % Done changed from 50 to 70

レビューOKです

Actions #4

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

Also available in: Atom PDF