Task(タスク) #3403
完了OpenPNE の既存のテストコードが正常に動作するように修正を行う
0%
説明
現象¶
OpenPNE に同梱されているユニットテスト・機能テストのコードの幾つかが正常に動作しない。特に機能テストについては、最近追加された activityPostWithImageTest.php
や memberSearchActionTest.php
を除いてほぼ全て動作しない状態になっている。
このチケットでは既存のテストコードが動作しない原因を調査し、原因ごとに子チケットを作成していく。問題の修正についてはそれぞれの子チケットで取り扱う。全ての問題が解決して ./symfony test:all
が成功した時点でこのタスクは完了とする。
ファイル
Youichi Kimura さんが約11年前に更新
- ファイル memberActionsTest_c7ce43f0.log を追加
手始めに source:test/functional/pc_frontend/memberActionsTest.php@c7ce43f0 から。
現時点で master ブランチの最新である c7ce43f00f8e5b1c613673b59038692cdb26c317 にて実行した結果を添付します。
php --version
の結果:
PHP 5.5.2-1 (cli) (built: Aug 20 2013 12:18:17) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies with Zend OPcache v7.0.3-dev, Copyright (c) 1999-2013, by Zend Technologies
mysqld --version
の結果:
mysqld Ver 5.5.31-1-log for debian-linux-gnu on x86_64 ((Debian))
Youichi Kimura さんが約11年前に更新
実行結果添付し直します。
Youichi Kimura さんが約11年前に更新
大量に出力されている `Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in ...
' は、PHP5.5 から非推奨となった preg_replace の /e 修飾子についての警告です。大抵は symfony や Doctrine のコードで発生しているようです。
Youichi Kimura さんが約11年前に更新
- トラッカー を Bug(バグ) から Task(タスク) に変更
- 題名 を OpenPNE に同梱されているテストコードが正常に動作しない から OpenPNE の既存のテストコードが正常に動作するように修正を行う に変更
- 説明 を更新 (差分)
Youichi Kimura さんが約11年前に更新
ひとつめ
Bug (バグ) #3404: テストデータのカテゴライズ機能がfunctionalテストで正しく動作していない
https://redmine.openpne.jp/issues/3404
Youichi Kimura さんが約11年前に更新
note-6 の修正を適用した a3beff99b303105c04cbf40dd3918ed3f1828504 にて再度 memberActionsTest.php を実行した結果 (抜粋):
# post /member/login/authMode/MailAddress > member/configImage > 1. When an user tries to post more than 4 photos, he gets an error message. (ref. #3544) > 1st Post not ok 1 - last request threw an uncaught exception RuntimeException: PHP sent a strict error at /home/upsilon/git/openpne3/master/apps/pc_frontend/modules/member/actions/actions.class.php line 19 (Declaration of memberActions::executeLogin() should be compatible with opMemberAction::executeLogin($request))
(途中のDeprecatedエラーは省略している)
Youichi Kimura さんが約11年前に更新
note-7 に対するチケット
Bug (バグ) #3405: opMemberActionクラスとその派生クラスでメソッドのシグニチャが一致していない
https://redmine.openpne.jp/issues/3405
Youichi Kimura さんが約11年前に更新
次のエラー
# post /member/login/authMode/MailAddress > member/configImage > 1. When an user tries to post more than 4 photos, he gets an error message. (ref. #3544) > 1st Post not ok 1 - last request threw an uncaught exception RuntimeException: PHP sent a strict error at /home/upsilon/git/openpne3/master/lib/util/opMobileUserAgent.class.php line 29 (Non-static method Net_UserAgent_Mobile::factory() should not be called statically, assuming $this from incompatible context)
(途中のDeprecatedエラーは省略している)
Youichi Kimura さんが約11年前に更新
note-9 に対するチケット
Bug (バグ) #3406: opMobileUserAgent::__construct() で E_STRICT エラーが発生する
https://redmine.openpne.jp/issues/3406
Youichi Kimura さんが約11年前に更新
note-10 の修正後。省略なし
# post /member/login/authMode/MailAddress PHP Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/response/sfWebResponse.class.php on line 409 PHP Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/response/sfWebResponse.class.php on line 409 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/response/sfWebResponse.class.php on line 409 PHP Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/response/sfWebResponse.class.php on line 409 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/response/sfWebResponse.class.php on line 409 PHP Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/response/sfWebResponse.class.php on line 409 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/response/sfWebResponse.class.php on line 409 > member/configImage > 1. When an user tries to post more than 4 photos, he gets an error message. (ref. #3544) > 1st Post # get member/configImage PHP Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/response/sfWebResponse.class.php on line 409 PHP Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/response/sfWebResponse.class.php on line 409 PHP Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/response/sfWebResponse.class.php on line 409 PHP Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/response/sfWebResponse.class.php on line 409 PHP Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/response/sfWebResponse.class.php on line 409 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/response/sfWebResponse.class.php on line 409 PHP Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/response/sfWebResponse.class.php on line 409 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/response/sfWebResponse.class.php on line 409 PHP Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/response/sfWebResponse.class.php on line 409 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/response/sfWebResponse.class.php on line 409
Youichi Kimura さんが約11年前に更新
symfony や lime 等から出る E_DEPRECATED レベルのエラーが多いため、ここから先は PHP 5.4 でテストを実行します。(一段落したところで戻します)
PHP 5.4.20 (cli) (built: Sep 26 2013 12:46:15) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
Youichi Kimura さんが約11年前に更新
note-12 の環境で memberActionsTest.php を実行した結果
Youichi Kimura さんが約11年前に更新
memberActionsTest.php の実行結果 (note-13) について、ひとまず全てのテストが実行されている(成功しているかどうかに関わらず)ため次のテストコードに移ります。
Youichi Kimura さんが約11年前に更新
communityActionsTest.php の実行結果 (抜粋)。LogicException によりテストの途中で終了しています。
> /config/communityTopicNotificationMail/1 - CSRF # post /config/communityTopicNotificationMail/1 LogicException: The request was not redirected. at () in lib/vendor/symfony/lib/util/sfBrowserBase.class.php line 540 at sfBrowserBase->followRedirect() in n/a line n/a at call_user_func_array() in lib/vendor/symfony/lib/test/sfTestFunctionalBase.class.php line 433 at sfTestFunctionalBase->__call() in test/functional/pc_frontend/communityActionsTest.php line 99 at opTestFunctional->followRedirect() in test/functional/pc_frontend/communityActionsTest.php line 99 not ok 23 - An uncaught exception has been thrown. # Failed test (./lib/vendor/symfony/lib/test/sfTestFunctionalBase.class.php at line 511) 1..23 # Looks like you failed 1 tests of 23.
Youichi Kimura さんが約11年前に更新
note-15 に対するチケット
Bug (バグ) #3423: OpenPNE 本体のテストコードに opCommunityTopicPlugin 依存のテストが含まれている
https://redmine.openpne.jp/issues/3423
Youichi Kimura さんが約11年前に更新
->with('reqponse')->debug()
を挿入した結果
> Login # get / Response debug # WARNING # An error occurred when processing this request. # The real response content has been replaced with the exception message to ease debugging. HTTP/1.X 500 Content-Type: text/html; charset=utf-8 exception 'RuntimeException' with message 'PHP sent a "notice" error at /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/i18n/sfMessageSource_File.class.php line 47 (Array to string conversion)' in /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/test/sfTestFunctionalBase.class.php:463 Stack trace: #0 /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/i18n/sfMessageSource_File.class.php(47): sfTestFunctionalBase->handlePhpError(8, 'Array to string...', '/home/upsilon/g...', 47, Array) #1 /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/i18n/sfMessageSource.class.php(137): sfMessageSource_File->__construct(Array) #2 /home/upsilon/git/openpne3/master/lib/i18n/opI18N.class.php(54): sfMessageSource::factory('OpenPNE', Array) #3 /home/upsilon/git/openpne3/master/lib/i18n/opI18N.class.php(78): opI18N->generateApplicationMessages(Array) #4 /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/i18n/sfI18N.class.php(432): opI18N->setMessageSource(Array) #5 [internal function]: sfI18N->listenToChangeActionEvent(Object(sfEvent)) #6 /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/event_dispatcher/sfEventDispatcher.php(79): call_user_func(Array, Object(sfEvent)) #7 /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/controller/sfController.class.php(227): sfEventDispatcher->notify(Object(sfEvent)) #8 /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/controller/sfFrontWebController.class.php(48): sfController->forward('default', 'top') #9 /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/util/sfBrowser.class.php(43): sfFrontWebController->dispatch() #10 /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/util/sfBrowserBase.class.php(323): sfBrowser->doCall() #11 /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/test/sfTestFunctionalBase.class.php(246): sfBrowserBase->call('/', 'get', Array, true) #12 /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/test/sfTestFunctionalBase.class.php(184): sfTestFunctionalBase->call('/', 'get', Array, true) #13 /home/upsilon/git/openpne3/master/test/functional/pc_backend/adminActionsTest.php(7): sfTestFunctionalBase->get('/') #14 {main}
Youichi Kimura さんが約11年前に更新
note-19 に対するバグチケット
Bug (バグ) #3424: opI18N::generateApplicationMessages() から呼ばれる sfMessageSource::factory() の引数の型が適切でない
https://redmine.openpne.jp/issues/3424
Youichi Kimura さんが約11年前に更新
source:test/functional/pc_backend/designActionsTest.php@015897d3 の実行結果:
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
Youichi Kimura さんが約11年前に更新
note-21 に対するバグチケット
Bug (バグ) #3425: pc_backendの機能テスト designActionsTest.php の実行に失敗する
https://redmine.openpne.jp/issues/3425
Youichi Kimura さんが約11年前に更新
つぎ
Bug (バグ) #3426: pc_backend の存在しないアクションに対するテストコードを削除する
https://redmine.openpne.jp/issues/3426
Youichi Kimura さんが約11年前に更新
source:test/functional/pc_backend/snsActionsTest.php@66829df2 の実行結果
> 0. Login # get /default/login # post /symfony/login RuntimeException: PHP sent a "warning" error at lib/vendor/symfony/lib/test/sfTestFunctionalBase.class.php line 433 (call_user_func_array() expects parameter 1 to be a valid callback, class 'sfBrowser' does not have a method 'isStatusCode') at () in lib/vendor/symfony/lib/test/sfTestFunctionalBase.class.php line 459 at sfTestFunctionalBase->handlePhpError() in n/a line n/a at call_user_func_array() in lib/vendor/symfony/lib/test/sfTestFunctionalBase.class.php line 433 at sfTestFunctionalBase->__call() in test/functional/pc_backend/snsActionsTest.php line 15 at sfTestFunctional->isStatusCode() in test/functional/pc_backend/snsActionsTest.php line 15 not ok 1 - An uncaught exception has been thrown. # Failed test (./lib/vendor/symfony/lib/test/sfTestFunctionalBase.class.php at line 511) 1..1 # Looks like you failed 1 tests of 1.
Youichi Kimura さんが約11年前に更新
note-24 に対するバグチケット
Bug (バグ) #3427: snsActionsTest.php でsfTestFunctionalクラスに存在しないisStatusCodeメソッドを呼び出している
https://redmine.openpne.jp/issues/3427
Youichi Kimura さんが約11年前に更新
note-25 修正後の snsActionsTest.php のエラー:
> 1. When an admin user tries to change the SNS configuration. (ref. #3488) > A category is not selected, admin user can change the general configuration. # get /sns/config Response debug # WARNING # An error occurred when processing this request. # The real response content has been replaced with the exception message to ease debugging. HTTP/1.X 500 Content-Type: text/html; charset=utf-8 exception 'RuntimeException' with message 'PHP sent a "notice" error at /home/upsilon/git/openpne3/master/lib/util/opFormItemGenerator.class.php line 171 (Undefined index: IsTrim)' in /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/test/sfTestFunctionalBase.class.php:463 Stack trace: #0 /home/upsilon/git/openpne3/master/lib/util/opFormItemGenerator.class.php(171): sfTestFunctionalBase->handlePhpError(8, 'Undefined index...', '/home/upsilon/g...', 171, Array) #1 /home/upsilon/git/openpne3/master/lib/form/doctrine/SnsConfigForm.class.php(37): opFormItemGenerator::generateValidator(Array) #2 /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/form/sfForm.class.php(70): SnsConfigForm->configure() #3 /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/form/addon/sfFormSymfony.class.php(33): sfForm->__construct(Array, Array, NULL) #4 /home/upsilon/git/openpne3/master/lib/form/BaseForm.class.php(15): sfFormSymfony->__construct(Array, Array, NULL) #5 /home/upsilon/git/openpne3/master/apps/pc_backend/modules/sns/actions/actions.class.php(39): BaseForm->__construct(Array, Array) #6 /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/action/sfActions.class.php(60): snsActions->executeConfig(Object(opWebRequest)) #7 /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/filter/sfExecutionFilter.class.php(92): sfActions->execute(Object(opWebRequest)) #8 /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/filter/sfExecutionFilter.class.php(78): sfExecutionFilter->executeAction(Object(snsActions)) #9 /home/upsilon/git/openpne3/master/lib/filter/opExecutionFilter.class.php(162): sfExecutionFilter->handleAction(Object(sfFilterChain), Object(snsActions)) #10 /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/filter/sfExecutionFilter.class.php(42): opExecutionFilter->handleAction(Object(sfFilterChain), Object(snsActions)) #11 /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/filter/sfFilterChain.class.php(53): sfExecutionFilter->execute(Object(sfFilterChain)) #12 /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/filter/sfBasicSecurityFilter.class.php(72): sfFilterChain->execute() #13 /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/filter/sfFilterChain.class.php(53): sfBasicSecurityFilter->execute(Object(sfFilterChain)) #14 /home/upsilon/git/openpne3/master/lib/filter/opCacheControlFilter.class.php(27): sfFilterChain->execute() #15 /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/filter/sfFilterChain.class.php(53): opCacheControlFilter->execute(Object(sfFilterChain)) #16 /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/util/sfBrowser.class.php(165): sfFilterChain->execute() #17 /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/filter/sfFilterChain.class.php(53): sfFakeRenderingFilter->execute(Object(sfFilterChain)) #18 /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/controller/sfController.class.php(238): sfFilterChain->execute() #19 /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/controller/sfFrontWebController.class.php(48): sfController->forward('sns', 'config') #20 /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/util/sfBrowser.class.php(43): sfFrontWebController->dispatch() #21 /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/util/sfBrowserBase.class.php(323): sfBrowser->doCall() #22 /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/test/sfTestFunctionalBase.class.php(246): sfBrowserBase->call('/sns/config', 'get', Array, true) #23 /home/upsilon/git/openpne3/master/lib/vendor/symfony/lib/test/sfTestFunctionalBase.class.php(184): sfTestFunctionalBase->call('/sns/config', 'get', Array, true) #24 /home/upsilon/git/openpne3/master/test/functional/pc_backend/snsActionsTest.php(19): sfTestFunctionalBase->get('/sns/config') #25 {main} not ok 2 - last request threw an uncaught exception RuntimeException: PHP sent a notice error at /home/upsilon/git/openpne3/master/lib/util/opFormItemGenerator.class.php line 171 (Undefined index: IsTrim) # Failed test (./lib/vendor/symfony/lib/test/sfTestFunctionalBase.class.php at line 425) 1..2 # Looks like you failed 1 tests of 2.
Youichi Kimura さんが約11年前に更新
note-26 に対するバグチケット
Bug (バグ) #3428: opFormItemGenerator::generateValidator() に渡すフィールドの IsRequired や IsTrim を省略すると E_NOTICE レベルのエラーが発生する
https://redmine.openpne.jp/issues/3428
Youichi Kimura さんが約11年前に更新
Bug (バグ) #3431: mobile_frontend, mobile_mail_frontend の雛形テストコードを削除する
https://redmine.openpne.jp/issues/3431
Youichi Kimura さんが約11年前に更新
途中で異常終了するユニットテスト:
Zend_Mail_Transport_Exception: Unable to send mail.
sfConfigurationException: Configuration "config/activity_template.yml" does not exist or is unreadable.
Zend_Acl_Exception: Resource 'community_member.' not found
Doctrine_Record_UnknownPropertyException: Unknown record property / related component "community_id" on "CommunityMember"
Doctrine_Record_UnknownPropertyException: Unknown record property / related component "id" on "CommunityMember"
Fatal error: Call to undefined function gzcompress()
Youichi Kimura さんが約11年前に更新
sfConfigurationException: Configuration "config/activity_template.yml" does not exist or is unreadable.
に対するバグチケット
Bug (バグ) #2773: テンプレートを使用するアクティビティの表示時に、対応するテンプレートが activity_template.yml 内に存在しない場合が想定されていない
https://redmine.openpne.jp/issues/2773
Youichi Kimura さんが約11年前に更新
Zend_Mail_Transport_Exception: Unable to send mail.
に対するバグチケット
Bug (バグ) #3443: MemberConfigFormTest, MemberRelationshipTableTest がsendmailコマンドを実行しようとする
https://redmine.openpne.jp/issues/3443
Shinichi Urabe さんが約11年前に更新
- pc_frontend にもひな形のままのテストコードが存在していますので、 #3431 と同様に削除したほうがよいかと考えます
- test/functional/pc_frontend/googlemapsActionsTest.php
- test/functional/pc_frontend/OpenIDActionsTest.php,
Youichi Kimura さんが約11年前に更新
Bug (バグ) #3445: #927 の修正によって無関係なCommunityMemberインスタンスが解放される問題の回避
https://redmine.openpne.jp/issues/3445
Youichi Kimura さんが約11年前に更新
Fatal error: Call to undefined function gzcompress()
に対するバグチケット
Bug (バグ) #3447: zlib 拡張の入っていない環境で opDoctrineRecordTest.php のテストが実行できない
https://redmine.openpne.jp/issues/3447
Youichi Kimura さんが約11年前に更新
note-36 までの修正で、OpenPNE コアに同梱されている全てのテストが(成功か否かに関わらず)実行される状態となりました。
現時点の master ブランチ (3743686e) での test:all
実行結果は下記の通りです。
Failed Test Stat Total Fail Errors List of Failed -------------------------------------------------------------------------- c_backend/communityActionsTest 0 19 2 0 2 4 _backend/connectionActionsTest 0 5 2 0 2 3 /pc_backend/defaultActionsTest 0 1 1 0 1 l/pc_backend/designActionsTest 0 32 10 0 3 4 16 17 22 23 24 28 30 31 l/pc_backend/memberActionsTest 0 12 2 0 9 10 _backend/monitoringActionsTest 0 10 1 0 2 nal/pc_backend/naviActionsTest 0 4 3 0 1 2 3 l/pc_backend/pluginActionsTest 0 3 3 0 1 2 3 /pc_backend/profileActionsTest 0 8 4 0 1 2 5 6 onal/pc_backend/snsActionsTest 0 17 4 0 3 4 16 17 _frontend/communityActionsTest 0 46 9 0 28 29 31 32 33 34 42 43 44 ontend/communityComponentsTest 0 11 2 0 5 8 ontend/confirmationActionsTest 0 11 2 0 3 4 frontend/connectionActionsTest 0 8 7 0 2 3 4 5 6 7 8 /pc_frontend/memberActionsTest 0 42 4 0 14 21 23 42 unit/api/opJsonApiTest 0 42 9 0 10 11 12 14 18 19 25 26 39 tionLevelCascadingListenerTest 0 22 1 0 1 doctrine/ActivityDataTableTest 0 40 1 0 15 ine/CommunityCategoryTableTest 0 19 3 0 15 17 19 doctrine/CommunityCategoryTest 0 9 1 0 7 trine/CommunityMemberTableTest 0 82 7 0 28 29 30 36 37 38 68 el/doctrine/CommunityTableTest 0 51 4 0 9 10 11 15 t/model/doctrine/CommunityTest 0 36 3 0 26 27 28 unit/model/doctrine/FileTest 0 11 1 0 11 octrine/MemberProfileTableTest 0 12 1 0 12 ne/MemberRelationshipTableTest 0 15 3 0 4 5 6 model/doctrine/MemberTableTest 0 12 1 0 2 unit/model/doctrine/MemberTest 0 59 5 0 10 27 28 57 59 thConsumerInformationTableTest 0 5 2 0 3 5 e/OAuthConsumerInformationTest 0 8 1 0 3 octrine/ProfileOptionTableTest 0 5 1 0 3 odel/doctrine/ProfileTableTest 0 10 1 0 10 nit/model/doctrine/ProfileTest 0 22 1 0 3 ngCategorizedCommunityTaskTest 0 19 1 0 2 til/opToolkitLoadXmlStringTest 0 8 2 0 7 8 Failed 35/88 test scripts, 60.23% okay. 105/1367 subtests failed, 92.32% okay.
Youichi Kimura さんが約11年前に更新
stable-3.6.x でテストを動作させるために追加でバックポートが必要そうなチケット:
Mutsumi Imamura さんが約11年前に更新
Youichi Kimura は書きました:
stable-3.6.x でテストを動作させるために追加でバックポートが必要そうなチケット:
Youichi Kimura さんが約11年前に更新
stable-3.6.x ブランチの memberActionsTest.php で出たり出なかったりしたエラー:
> /member/updateActivity - CSRF # post /member/updateActivity PHP Fatal error: Call to a member function pluralize() on a non-object in /home/upsilon/git/openpne3/master/lib/model/doctrine/ActivityDataTable.class.php on line 163 Fatal error: Call to a member function pluralize() on a non-object in /home/upsilon/git/openpne3/master/lib/model/doctrine/ActivityDataTable.class.php on line 163
Fatal error: Call to a member function pluralize() on a non-object in /var/www/sns/ukimura.dazai2.pne.jp/master/lib/model/doctrine/ActivityDataTable.class.php on line 170 Call Stack: 0.0006 735112 1. {main}() /var/www/sns/ukimura.dazai2.pne.jp/master/test/functional/pc_frontend/memberActionsTest.php:0 25.8067 226876920 2. sfTestFunctionalBase->post() /var/www/sns/ukimura.dazai2.pne.jp/master/test/functional/pc_frontend/memberActionsTest.php:124 25.8067 226877264 3. sfTestFunctionalBase->call() /var/www/sns/ukimura.dazai2.pne.jp/master/lib/vendor/symfony/lib/test/sfTestFunctionalBase.class.php:220 25.8069 226877352 4. sfBrowserBase->call() /var/www/sns/ukimura.dazai2.pne.jp/master/lib/vendor/symfony/lib/test/sfTestFunctionalBase.class.php:246 25.8071 226878568 5. sfBrowser->doCall() /var/www/sns/ukimura.dazai2.pne.jp/master/lib/vendor/symfony/lib/util/sfBrowserBase.class.php:323 25.9249 229404136 6. sfFrontWebController->dispatch() /var/www/sns/ukimura.dazai2.pne.jp/master/lib/vendor/symfony/lib/util/sfBrowser.class.php:43 25.9250 229404512 7. sfController->forward() /var/www/sns/ukimura.dazai2.pne.jp/master/lib/vendor/symfony/lib/controller/sfFrontWebController.class.php:48 25.9400 229425304 8. sfFilterChain->execute() /var/www/sns/ukimura.dazai2.pne.jp/master/lib/vendor/symfony/lib/controller/sfController.class.php:238 25.9404 229425352 9. sfFakeRenderingFilter->execute() /var/www/sns/ukimura.dazai2.pne.jp/master/lib/vendor/symfony/lib/filter/sfFilterChain.class.php:53 25.9404 229425352 10. sfFilterChain->execute() /var/www/sns/ukimura.dazai2.pne.jp/master/lib/vendor/symfony/lib/util/sfBrowser.class.php:165 25.9407 229425352 11. opCacheControlFilter->execute() /var/www/sns/ukimura.dazai2.pne.jp/master/lib/vendor/symfony/lib/filter/sfFilterChain.class.php:53 25.9407 229425352 12. sfFilterChain->execute() /var/www/sns/ukimura.dazai2.pne.jp/master/lib/filter/opCacheControlFilter.class.php:27 25.9410 229425352 13. opCheckEnabledApplicationFilter->execute() /var/www/sns/ukimura.dazai2.pne.jp/master/lib/vendor/symfony/lib/filter/sfFilterChain.class.php:53 25.9411 229425432 14. sfFilterChain->execute() /var/www/sns/ukimura.dazai2.pne.jp/master/lib/filter/opCheckEnabledApplicationFilter.class.php:39 25.9415 229425432 15. opAppendXRDSHeaderFilter->execute() /var/www/sns/ukimura.dazai2.pne.jp/master/lib/vendor/symfony/lib/filter/sfFilterChain.class.php:53 25.9416 229425432 16. sfFilterChain->execute() /var/www/sns/ukimura.dazai2.pne.jp/master/lib/filter/opAppendXRDSHeaderFilter.class.php:26 25.9419 229425432 17. sfBasicSecurityFilter->execute() /var/www/sns/ukimura.dazai2.pne.jp/master/lib/vendor/symfony/lib/filter/sfFilterChain.class.php:53 25.9421 229425432 18. sfFilterChain->execute() /var/www/sns/ukimura.dazai2.pne.jp/master/lib/vendor/symfony/lib/filter/sfBasicSecurityFilter.class.php:72 25.9424 229425432 19. sfExecutionFilter->execute() /var/www/sns/ukimura.dazai2.pne.jp/master/lib/vendor/symfony/lib/filter/sfFilterChain.class.php:53 25.9426 229426592 20. opExecutionFilter->handleAction() /var/www/sns/ukimura.dazai2.pne.jp/master/lib/vendor/symfony/lib/filter/sfExecutionFilter.class.php:42 25.9438 229426552 21. sfExecutionFilter->handleAction() /var/www/sns/ukimura.dazai2.pne.jp/master/lib/filter/opExecutionFilter.class.php:162 25.9438 229426552 22. sfExecutionFilter->executeAction() /var/www/sns/ukimura.dazai2.pne.jp/master/lib/vendor/symfony/lib/filter/sfExecutionFilter.class.php:78 25.9691 229466832 23. sfActions->execute() /var/www/sns/ukimura.dazai2.pne.jp/master/lib/vendor/symfony/lib/filter/sfExecutionFilter.class.php:92 25.9694 229466920 24. opMemberAction->executeUpdateActivity() /var/www/sns/ukimura.dazai2.pne.jp/master/lib/vendor/symfony/lib/action/sfActions.class.php:60 25.9731 229631176 25. sfFormDoctrine->__construct() /var/www/sns/ukimura.dazai2.pne.jp/master/lib/action/opMemberAction.class.php:575 25.9732 229631784 26. BaseForm->__construct() /var/www/sns/ukimura.dazai2.pne.jp/master/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/form/sfFormDoctrine.class.php:52 25.9732 229631784 27. sfFormSymfony->__construct() /var/www/sns/ukimura.dazai2.pne.jp/master/lib/form/BaseForm.class.php:15 25.9732 229631784 28. sfForm->__construct() /var/www/sns/ukimura.dazai2.pne.jp/master/lib/vendor/symfony/lib/form/addon/sfFormSymfony.class.php:33 25.9820 229854064 29. ActivityDataForm->configure() /var/www/sns/ukimura.dazai2.pne.jp/master/lib/vendor/symfony/lib/form/sfForm.class.php:70 25.9876 229752608 30. ActivityDataTable->getPublicFlags() /var/www/sns/ukimura.dazai2.pne.jp/master/lib/form/doctrine/ActivityDataForm.class.php:30
Mutsumi Imamura さんが約11年前に更新
php test/functional/pc_frontend/memberActionsTest.php を実行し下記のエラーが出力されました。
> 1. When an user tries to post more than 4 photos, he gets an error message. (ref. #3544) > 1st Post # post /member/login/authMode/MailAddress # get /member/configImage InvalidArgumentException: Could not find the element "アップロードする" (position 1) in the current DOM. at () in lib/vendor/symfony/lib/util/sfBrowserBase.class.php line 740 at sfBrowserBase->doClickCssSelector() in n/a line n/a at call_user_func_array() in lib/vendor/symfony/lib/test/sfTestFunctionalBase.class.php line 433 at sfTestFunctionalBase->__call() in lib/vendor/symfony/lib/test/sfTestFunctionalBase.class.php line 302 at opTestFunctional->doClickCssSelector() in lib/vendor/symfony/lib/test/sfTestFunctionalBase.class.php line 302 at sfTestFunctionalBase->click() in test/functional/pc_frontend/memberActionsTest.php line 16 not ok 1 - An uncaught exception has been thrown. # Failed test (./lib/vendor/symfony/lib/test/sfTestFunctionalBase.class.php at line 511) not ok 2 - last request threw an uncaught exception Doctrine_Connection_Mysql_Exception: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens # Failed test (./lib/vendor/symfony/lib/test/sfTestFunctionalBase.class.php at line 425) 1..2 # Looks like you failed 2 tests of 2.
Mutsumi Imamura さんが約11年前に更新
Mutsumi Imamura は書きました:
php test/functional/pc_frontend/memberActionsTest.php を実行し下記のエラーが出力されました。
[...]
のエラーについてスタックトレース
HTTP/1.X 500 Content-Type: text/html; charset=utf-8 exception 'Doctrine_Connection_Mysql_Exception' with message 'SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens' in /Users/imamura/SNS/auto_test_openpne3/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection.php:1082 Stack trace: #0 /Users/imamura/SNS/auto_test_openpne3/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection/Statement.php(269): Doctrine_Connection->rethrowException(Object(PDOException), Object(Doctrine_Connection_Statement)) #1 /Users/imamura/SNS/auto_test_openpne3/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection.php(1006): Doctrine_Connection_Statement->execute(Array) #2 /Users/imamura/SNS/auto_test_openpne3/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Query/Abstract.php(983): Doctrine_Connection->execute('SELECT m.id AS ...', Array) #3 /Users/imamura/SNS/auto_test_openpne3/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Query/Abstract.php(1033): Doctrine_Query_Abstract->_execute(Array) #4 /Users/imamura/SNS/auto_test_openpne3/lib/util/opDoctrineConnectionMysql.class.php(74): Doctrine_Query_Abstract->execute(Array, NULL) #5 /Users/imamura/SNS/auto_test_openpne3/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Relation/LocalKey.php(63): opDoctrineConnectionMysql->query('FROM Member WHE...', Array) #6 /Users/imamura/SNS/auto_test_openpne3/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Record.php(1380): Doctrine_Relation_LocalKey->fetchRelatedFor(Object(MemberImage)) #7 /Users/imamura/SNS/auto_test_openpne3/lib/util/opDoctrineRecord.class.php(177): Doctrine_Record->_get('Member', true) #8 /Users/imamura/SNS/auto_test_openpne3/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Record.php(1350): opDoctrineRecord->_get('Member', true) #9 /Users/imamura/SNS/auto_test_openpne3/lib/util/opDoctrineRecord.class.php(158): Doctrine_Record->get('Member', true) #10 /Users/imamura/SNS/auto_test_openpne3/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Access.php(72): opDoctrineRecord->get('Member') #11 /Users/imamura/SNS/auto_test_openpne3/lib/model/doctrine/MemberImage.class.php(20): Doctrine_Access->__get('Member') #12 [internal function]: MemberImage->getIsPrimary() #13 /Users/imamura/SNS/auto_test_openpne3/lib/vendor/symfony/lib/escaper/sfOutputEscaperObjectDecorator.class.php(64): call_user_func_array(Array, Array) #14 /Users/imamura/SNS/auto_test_openpne3/apps/pc_frontend/templates/_partsMemberImagesBox.php(13): sfOutputEscaperObjectDecorator->__call('getIsPrimary', Array) #15 /Users/imamura/SNS/auto_test_openpne3/apps/pc_frontend/templates/_partsMemberImagesBox.php(13): sfOutputEscaperIteratorDecorator->getIsPrimary() #16 /Users/imamura/SNS/auto_test_openpne3/lib/vendor/symfony/lib/view/sfPHPView.class.php(75): require('/Users/imamura/...') #17 /Users/imamura/SNS/auto_test_openpne3/lib/vendor/symfony/lib/view/sfPartialView.class.php(124): sfPHPView->renderFile('/Users/imamura/...') #18 /Users/imamura/SNS/auto_test_openpne3/lib/vendor/symfony/lib/helper/PartialHelper.php(218): sfPartialView->render() #19 /Users/imamura/SNS/auto_test_openpne3/lib/helper/opPartsHelper.php(36): get_partial('global/partsMem...', Array) #20 /Users/imamura/SNS/auto_test_openpne3/apps/pc_frontend/modules/member/templates/configImageSuccess.php(5): op_include_parts('memberImagesBox', 'memberImageUplo...', Array) #21 /Users/imamura/SNS/auto_test_openpne3/lib/vendor/symfony/lib/view/sfPHPView.class.php(75): require('/Users/imamura/...') #22 /Users/imamura/SNS/auto_test_openpne3/lib/vendor/symfony/lib/view/sfPHPView.class.php(185): sfPHPView->renderFile('/Users/imamura/...') #23 /Users/imamura/SNS/auto_test_openpne3/lib/vendor/symfony/lib/filter/sfExecutionFilter.class.php(155): sfPHPView->render() #24 /Users/imamura/SNS/auto_test_openpne3/lib/vendor/symfony/lib/filter/sfExecutionFilter.class.php(116): sfExecutionFilter->executeView('member', 'configImage', 'Success', Array) #25 /Users/imamura/SNS/auto_test_openpne3/lib/vendor/symfony/lib/filter/sfExecutionFilter.class.php(47): sfExecutionFilter->handleView(Object(sfFilterChain), Object(memberActions), 'Success') #26 /Users/imamura/SNS/auto_test_openpne3/lib/vendor/symfony/lib/filter/sfFilterChain.class.php(53): sfExecutionFilter->execute(Object(sfFilterChain)) #27 /Users/imamura/SNS/auto_test_openpne3/lib/filter/opEmojiFilter.class.php(29): sfFilterChain->execute() #28 /Users/imamura/SNS/auto_test_openpne3/lib/vendor/symfony/lib/filter/sfFilterChain.class.php(53): opEmojiFilter->execute(Object(sfFilterChain)) #29 /Users/imamura/SNS/auto_test_openpne3/lib/vendor/symfony/lib/filter/sfBasicSecurityFilter.class.php(72): sfFilterChain->execute() #30 /Users/imamura/SNS/auto_test_openpne3/lib/vendor/symfony/lib/filter/sfFilterChain.class.php(53): sfBasicSecurityFilter->execute(Object(sfFilterChain)) #31 /Users/imamura/SNS/auto_test_openpne3/lib/filter/opAppendXRDSHeaderFilter.class.php(26): sfFilterChain->execute() #32 /Users/imamura/SNS/auto_test_openpne3/lib/vendor/symfony/lib/filter/sfFilterChain.class.php(53): opAppendXRDSHeaderFilter->execute(Object(sfFilterChain)) #33 /Users/imamura/SNS/auto_test_openpne3/lib/filter/opCheckEnabledApplicationFilter.class.php(39): sfFilterChain->execute() #34 /Users/imamura/SNS/auto_test_openpne3/lib/vendor/symfony/lib/filter/sfFilterChain.class.php(53): opCheckEnabledApplicationFilter->execute(Object(sfFilterChain)) #35 /Users/imamura/SNS/auto_test_openpne3/lib/filter/opCacheControlFilter.class.php(27): sfFilterChain->execute() #36 /Users/imamura/SNS/auto_test_openpne3/lib/vendor/symfony/lib/filter/sfFilterChain.class.php(53): opCacheControlFilter->execute(Object(sfFilterChain)) #37 /Users/imamura/SNS/auto_test_openpne3/lib/vendor/symfony/lib/util/sfBrowser.class.php(165): sfFilterChain->execute() #38 /Users/imamura/SNS/auto_test_openpne3/lib/vendor/symfony/lib/filter/sfFilterChain.class.php(53): sfFakeRenderingFilter->execute(Object(sfFilterChain)) #39 /Users/imamura/SNS/auto_test_openpne3/lib/vendor/symfony/lib/controller/sfController.class.php(238): sfFilterChain->execute() #40 /Users/imamura/SNS/auto_test_openpne3/lib/vendor/symfony/lib/controller/sfFrontWebController.class.php(48): sfController->forward('member', 'configImage') #41 /Users/imamura/SNS/auto_test_openpne3/lib/vendor/symfony/lib/util/sfBrowser.class.php(43): sfFrontWebController->dispatch() #42 /Users/imamura/SNS/auto_test_openpne3/lib/vendor/symfony/lib/util/sfBrowserBase.class.php(323): sfBrowser->doCall() #43 /Users/imamura/SNS/auto_test_openpne3/lib/vendor/symfony/lib/test/sfTestFunctionalBase.class.php(246): sfBrowserBase->call('/member/configI...', 'get', Array, true) #44 /Users/imamura/SNS/auto_test_openpne3/lib/vendor/symfony/lib/test/sfTestFunctionalBase.class.php(184): sfTestFunctionalBase->call('/member/configI...', 'get', Array, true) #45 /Users/imamura/SNS/auto_test_openpne3/test/functional/pc_frontend/memberActionsTest.php(15): sfTestFunctionalBase->get('/member/configI...') #46 {main} not ok 1 - last request threw an uncaught exception Doctrine_Connection_Mysql_Exception: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens # Failed test (./lib/vendor/symfony/lib/test/sfTestFunctionalBase.class.php at line 425) 1..1 # Looks like you failed 1 tests of 1.
Youichi Kimura さんが約11年前に更新
stable-3.6.x ブランチでの test:all タスク実行結果:
Failed Test Stat Total Fail Errors List of Failed -------------------------------------------------------------------------- c_backend/communityActionsTest 0 19 2 0 2 4 _backend/connectionActionsTest 0 5 2 0 2 3 /pc_backend/defaultActionsTest 0 1 1 0 1 l/pc_backend/designActionsTest 0 32 10 0 3 4 16 17 22 23 24 28 30 31 nal/pc_backend/mailActionsTest 0 2 2 0 1 2 l/pc_backend/memberActionsTest 0 12 2 0 9 10 _backend/monitoringActionsTest 0 10 1 0 2 nal/pc_backend/naviActionsTest 0 4 3 0 1 2 3 l/pc_backend/pluginActionsTest 0 3 3 0 1 2 3 /pc_backend/profileActionsTest 0 8 4 0 1 2 5 6 onal/pc_backend/snsActionsTest 0 16 3 0 2 3 7 /pc_frontend/OpenIDActionsTest 0 2 2 0 1 2 _frontend/communityActionsTest 0 28 4 0 13 14 15 16 frontend/connectionActionsTest 0 8 7 0 2 3 4 5 6 7 8 /pc_frontend/memberActionsTest 0 40 4 0 12 19 21 40 tionLevelCascadingListenerTest 0 22 1 0 1 doctrine/ActivityDataTableTest 0 40 1 0 15 trine/CommunityMemberTableTest 0 82 6 0 28 29 30 36 37 38 el/doctrine/CommunityTableTest 0 51 3 0 9 11 15 unit/model/doctrine/FileTest 0 11 1 0 11 octrine/MemberProfileTableTest 0 12 1 0 12 ne/MemberRelationshipTableTest 0 15 3 0 4 5 6 model/doctrine/MemberTableTest 0 12 1 0 2 unit/model/doctrine/MemberTest 0 59 5 0 10 27 28 50 57 thConsumerInformationTableTest 0 5 2 0 3 5 e/OAuthConsumerInformationTest 0 8 1 0 3 octrine/ProfileOptionTableTest 0 5 1 0 3 odel/doctrine/ProfileTableTest 0 10 1 0 10 nit/model/doctrine/ProfileTest 0 22 1 0 3 ngCategorizedCommunityTaskTest 0 19 1 0 2 til/opToolkitLoadXmlStringTest 0 8 2 0 7 8 Failed 31/85 test scripts, 63.53% okay. 81/1178 subtests failed, 93.12% okay.
Youichi Kimura さんが約11年前に更新
stable-3.8.x ブランチ (f563ccb4) での test:all タスク実行結果:
Failed Test Stat Total Fail Errors List of Failed -------------------------------------------------------------------------- c_backend/communityActionsTest 0 19 2 0 2 4 _backend/connectionActionsTest 0 5 2 0 2 3 /pc_backend/defaultActionsTest 0 1 1 0 1 l/pc_backend/designActionsTest 0 32 10 0 3 4 16 17 22 23 24 28 30 31 l/pc_backend/memberActionsTest 0 12 2 0 9 10 _backend/monitoringActionsTest 0 10 1 0 2 nal/pc_backend/naviActionsTest 0 4 3 0 1 2 3 l/pc_backend/pluginActionsTest 0 3 3 0 1 2 3 /pc_backend/profileActionsTest 0 8 4 0 1 2 5 6 onal/pc_backend/snsActionsTest 0 17 4 0 3 4 16 17 ontend/confirmationActionsTest 0 11 2 0 3 4 frontend/connectionActionsTest 0 8 7 0 2 3 4 5 6 7 8 /pc_frontend/memberActionsTest 0 42 4 0 14 21 23 42 unit/api/opJsonApiTest 0 42 9 0 10 11 12 14 18 19 25 26 39 tionLevelCascadingListenerTest 0 22 1 0 1 doctrine/ActivityDataTableTest 0 40 1 0 15 doctrine/CommunityCategoryTest 0 9 1 0 7 trine/CommunityMemberTableTest 0 82 6 0 28 29 30 36 37 38 el/doctrine/CommunityTableTest 0 51 3 0 9 11 15 unit/model/doctrine/FileTest 0 11 1 0 11 octrine/MemberProfileTableTest 0 12 1 0 12 ne/MemberRelationshipTableTest 0 15 3 0 4 5 6 model/doctrine/MemberTableTest 0 12 1 0 2 unit/model/doctrine/MemberTest 0 59 4 0 10 27 28 57 thConsumerInformationTableTest 0 5 2 0 3 5 e/OAuthConsumerInformationTest 0 8 1 0 3 octrine/ProfileOptionTableTest 0 5 1 0 3 odel/doctrine/ProfileTableTest 0 10 1 0 10 nit/model/doctrine/ProfileTest 0 22 1 0 3 ngCategorizedCommunityTaskTest 0 19 1 0 2 til/opToolkitLoadXmlStringTest 0 8 2 0 7 8 Failed 31/86 test scripts, 63.95% okay. 85/1247 subtests failed, 93.18% okay.
実行環境:
PHP 5.4.21 (cli) (built: Nov 7 2013 15:37:08) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
Youichi Kimura さんが8年以上前に更新
- ステータス を Accepted(着手) から Invalid(無効) に変更
新たにチケット #3969 を作成したため当チケットはクローズします