Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
本章では、これまでテスト駆動開発を行うための環境の構築方法について説明してきました。 ここからいよいよテスト駆動開発を用いてショートコードプラグインを作っていきます。 これから作るプラグインの機能について これから例として作るプラグインはショートコードプラグインです。 ショートコードとは、記事内に動的に変化するコンテンツを埋め込むための仕組みで、WordPressのデフォルトでは[gallery]というショートコードがあり、みなさんも使ったことがあると思います。 これを使用すると簡単なパラメータをPHPに渡して複雑な処理を行うことができ、私も以下のようなプラグインを公式ディレクトリに公開しています。 Simple Map – https://wordpress.org/plugins/simple-map/ Child Pages Shortcode – http://wordpress.
Unit tests are a tool that developers use to test that code is performing properly. The idea behind them is to create a set of tests to determine if your code, given a known data set, gives the expected response. A unit test should check that one piece of code, such as a function or method, runs properly and returns the expected results. Through this tutorial series, we will walk through how to se
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く